Skip to content

Commit

Permalink
fix: updated error messages for invalid multiaddr batches (libp2p#1616)
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad committed Mar 27, 2023
1 parent 5fcf8dc commit 7599911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/get-peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export function getPeerAddress (peer: PeerId | Multiaddr | Multiaddr[]): PeerAdd
}
} else {
throw new CodeError(
`${peer} is unsure which peerId to call`, // eslint-disable-line @typescript-eslint/restrict-template-expressions
codes.ERR_INVALID_MULTIADDR
`Multiaddrs must all have the same peer id or have no peer id: ${peer}`, // eslint-disable-line @typescript-eslint/restrict-template-expressions
codes.ERR_INVALID_PARAMETERS
)
}
}
Expand Down

0 comments on commit 7599911

Please sign in to comment.