Skip to content

Commit

Permalink
style(Server): change server error string to template string
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Jul 3, 2022
1 parent 8458ca8 commit 535c728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/js/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = class ServerError extends Error {
if (this.originError) {
return this.originError.toString()
} else {
return 'ServerError: ' + this.code + ': ' + this.message
return `ServerError: ${this.code}: ${this.message}`
}
}
}

0 comments on commit 535c728

Please sign in to comment.