diff --git a/core/enig_error.js b/core/enig_error.js index b0dd2335..c6eb8097 100644 --- a/core/enig_error.js +++ b/core/enig_error.js @@ -11,6 +11,10 @@ class EnigError extends Error { this.reason = reason; this.reasonCode = reasonCode; + if(this.reason) { + this.message += `: ${this.reason}`; + } + if(typeof Error.captureStackTrace === 'function') { Error.captureStackTrace(this, this.constructor); } else {