Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Omit needless `tor:' tags on error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
riastradh-brave committed Jul 12, 2018
1 parent 2f40572 commit 79794d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/tor.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,16 +526,16 @@ class TorDaemon extends EventEmitter {
}
}
if (err) {
return this._error(`tor: authentication failure: ${err}`)
return this._error(`authentication failure: ${err}`)
}
this._control.getSOCKSListeners((err, listeners) => {
if (err) {
return this._error(`tor: failed to get socks addresses: ${err}`)
return this._error(`failed to get socks addresses: ${err}`)
}
this._socks_addresses = listeners
this._control.getVersion((err, version) => {
if (err) {
return this._error(`tor: failed to get version: ${err}`)
return this._error(`failed to get version: ${err}`)
}
this._tor_version = version
this.emit('launch', this.getSOCKSAddress())
Expand Down Expand Up @@ -1136,7 +1136,7 @@ class TorControl extends EventEmitter {
_onEnd () {
assert(!this._destroyed)
if (this._cmdq.length > 0) {
this._error('tor: control connection closed prematurely')
this._error('control connection closed prematurely')
}
this.emit('end')
}
Expand Down

0 comments on commit 79794d6

Please sign in to comment.