inserting stack into the.. stack

This commit is contained in:
Miodec 2021-08-18 01:01:28 +01:00
parent 5ffd053d0a
commit 2c510eb7a9

View file

@ -4,7 +4,7 @@ class MonkeyError {
constructor(status, message, stack = null, uid) {
this.status = status ?? 500;
this.errorID = uuid.v4();
this.stack = stack;
this.message =
process.env.MODE === "dev"
? stack