mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 21:51:29 +08:00
fixed error showing null string if no stack was present
This commit is contained in:
parent
060de11f04
commit
fe834b52d0
1 changed files with 3 additions and 1 deletions
|
|
@ -7,7 +7,9 @@ class MonkeyError {
|
|||
if (this.status === 500) {
|
||||
this.message =
|
||||
process.env.MODE === "dev"
|
||||
? String(stack)
|
||||
? stack
|
||||
? String(stack)
|
||||
: String(message)
|
||||
: "Internal Server Error " + this.errorID;
|
||||
} else {
|
||||
this.message =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue