mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 04:51:16 +08:00
updated error message when dev mode is active
This commit is contained in:
parent
33983b4a21
commit
3eae8529df
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue