kopia lustrzana https://github.com/c9/core
Fixing up error logging if a string is passed to log
rodzic
a1b90ab235
commit
54c4370045
|
@ -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);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue