mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-25 23:53:07 +01:00
Fall back to error code 500 when not set in error object
This commit is contained in:
1 parent
586dfd36a9
commit
ee1f7ba551
2 files changed
+233
-86
No files matched your search
+1
-1
@@ -62,7 +62,7 @@ app.use("/", mainRoutes);
|
||||
app.use((err, req, res, _) => {
|
||||
const payload = {
|
||||
error: {
|
||||
code: err.status,
|
||||
code: err.status || 500,
|
||||
message: err.public ? err.message : "Internal Error",
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user