mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Merge pull request +9178 from c9/fix/error-logging
[trivial] Fixing up error logging if a string is passed to log
This commit is contained in:
commit
a0dfacf32f
@ -9,6 +9,9 @@ function plugin(options, imports, register) {
|
||||
var raygun = imports.raygun;
|
||||
|
||||
function error(err, customData, user) {
|
||||
if (typeof err === "string") {
|
||||
err = new Error(err);
|
||||
}
|
||||
raygun.errorClient.setUser(user);
|
||||
raygun.errorClient.send(err, customData);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user