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

Commit

Permalink
fix: do not assign read-only error.message
Browse files Browse the repository at this point in the history
  • Loading branch information
tabcat authored and vasco-santos committed Sep 11, 2020
1 parent 3df8bbc commit b84dd66
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ class WebRTCStar {

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

err.message = msg
log.error(msg)
log.error(err)
done(err)
}
}
Expand Down

0 comments on commit b84dd66

Please sign in to comment.