From c506748bf00d33f76903f26f19594ff709f0ab97 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Wed, 11 Mar 2015 12:10:19 +0000 Subject: [PATCH] some cleanup --- plugins/c9.error/raygun.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/c9.error/raygun.js b/plugins/c9.error/raygun.js index 19e81863..1681248f 100644 --- a/plugins/c9.error/raygun.js +++ b/plugins/c9.error/raygun.js @@ -33,11 +33,10 @@ function plugin(options, imports, register) { client = clients[client]; client._send = client.send; client.send = function(exception, customData, callback, request) { - var ex = exception; if (!exception.stack) - ex = new Error(exception.message || exception); + exception = new Error(exception.message || exception); - return this._send(ex, customData, callback, request); + return this._send.apply(this, arguments); }; }