mirror of
https://github.com/MrTalon63/NeoMap.git
synced 2026-01-11 11:59:13 +01:00
Debug
This commit is contained in:
parent
89825059a8
commit
6986ab1ec5
1 changed files with 1 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ app.onError((err, c) => {
|
|||
const isDev = Deno.env.get("NODE_ENV") === "development";
|
||||
if (isDev) {
|
||||
console.error(err);
|
||||
console.log(Deno.env.toObject());
|
||||
return c.json({ status: 500, message: "Server Error", error: err.message }, 500);
|
||||
}
|
||||
return c.json({ status: 500, message: "Server Error" }, 500);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue