mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-17 14:19:40 +08:00
Include error id (#2671)
This commit is contained in:
parent
7e48eee2e9
commit
6b12ba3900
1 changed files with 1 additions and 2 deletions
|
|
@ -30,8 +30,7 @@ async function errorHandlingMiddleware(
|
|||
monkeyResponse.message = error.message;
|
||||
monkeyResponse.status = error.status;
|
||||
} else {
|
||||
monkeyResponse.message =
|
||||
"Oops! Our monkeys dropped their bananas. Please try again later.";
|
||||
monkeyResponse.message = `Oops! Our monkeys dropped their bananas. Please try again later. - ${monkeyResponse.data.errorId}`;
|
||||
}
|
||||
|
||||
if (process.env.MODE !== "dev" && monkeyResponse.status >= 500) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue