logging error if on dev

This commit is contained in:
Miodec 2022-01-07 15:48:51 +01:00
parent 274f06b461
commit 1fa53560a9

View file

@ -16,6 +16,7 @@ class MonkeyError {
if (process.env.MODE === "dev") {
this.message = stack ? String(stack) : String(message);
console.error(this.message);
} else {
if (this.stack && this.status >= 500) {
this.message = "Internal Server Error " + this.errorID;