Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
chore: add consistent message error with other libp2p transports
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Sep 11, 2020
1 parent b84dd66 commit 56cc5b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ class WebRTCStar {

const onError = (err) => {
if (!connected) {
log.error(err)
const msg = `connection error ${cOpts.host}:${cOpts.port}: ${err.message}`
log.error(msg)
done(err)
}
}
Expand Down

0 comments on commit 56cc5b0

Please sign in to comment.