mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
It could be the scope breaking it
This commit is contained in:
parent
267ae6e3f4
commit
0d8fbef5d6
@ -125,6 +125,7 @@ function plugin(options, imports, register) {
|
||||
} catch (e) {
|
||||
console.error("Cannot send error as JSON: ", error);
|
||||
error.message = "Unspecified error";
|
||||
error.scope = null;
|
||||
}
|
||||
res.json({ error: error }, null, statusCode);
|
||||
// plain text
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user