mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-10 05:17:03 +08:00
logging error if on dev
This commit is contained in:
parent
274f06b461
commit
1fa53560a9
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue