Add peers with errors to swarm.peers definition
Add peers with errors to swarm.peers definition

js-ipfs-api can encounter individual peer info objects that have newer multiaddrs or, in theory, a new format for PeerId that it cannot parse. Allowing for individiual peerInfo validation errors allows us to return a response which has the right number of peers in, and peerId and multiaddr info for all the other peers that could be validated, along with a info about peers that failed to validate.

See: https://github.com/ipfs/js-ipfs-api/pull/887
ipfs/interface-ipfs-core