added message to stack

This commit is contained in:
Miodec 2022-02-03 22:47:42 +01:00
parent f1c60b93c1
commit 5c04dff242

View file

@ -20,6 +20,7 @@ class MonkeyError {
: String(message);
} else {
if (this.stack && this.status >= 500) {
this.stack = this.message + "\n" + this.stack;
this.message = "Internal Server Error " + this.errorID;
} else {
this.message = String(message);