updated error message when dev mode is active

This commit is contained in:
Miodec 2022-01-10 03:05:57 +01:00
parent 33983b4a21
commit 3eae8529df

View file

@ -15,7 +15,9 @@ class MonkeyError {
// : "Internal Server Error " + this.errorID;
if (process.env.MODE === "dev") {
this.message = stack ? String(stack) : String(message);
this.message = stack
? String(message) + "\nStack: " + String(stack)
: String(message);
} else {
if (this.stack && this.status >= 500) {
this.message = "Internal Server Error " + this.errorID;