kopia lustrzana https://github.com/c9/core
sometimes we have raygun errors without a message. make it easier to find them
rodzic
ab9cb53cf8
commit
61ccd42969
|
@ -29,6 +29,17 @@ function plugin(options, imports, register) {
|
||||||
warning: new raygun.Client().init({ apiKey: options.keys.warning })
|
warning: new raygun.Client().init({ apiKey: options.keys.warning })
|
||||||
};
|
};
|
||||||
|
|
||||||
|
for (var client in clients) {
|
||||||
|
client._send = client.send;
|
||||||
|
client.send = function(exception, customData, callback, request) {
|
||||||
|
var ex = exception;
|
||||||
|
if (!exception.stack)
|
||||||
|
ex = new Error(exception.message || exception);
|
||||||
|
|
||||||
|
return this._send(ex, customData, callback, request);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
clients.error.setVersion(options.version + ".0");
|
clients.error.setVersion(options.version + ".0");
|
||||||
clients.warning.setVersion(options.version + ".0");
|
clients.warning.setVersion(options.version + ".0");
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue