diff --git a/package.json b/package.json index 4b21ccf7..e3179ef4 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,7 @@ "c9.ide.recentfiles": "#7c099abf40", "c9.ide.remote": "#301d2ab519", "c9.ide.processlist": "#2b12cd1bdd", - "c9.ide.run": "#f9b7d60b96", + "c9.ide.run": "#5390324c28", "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", "c9.ide.save": "#76cf52ab6d", diff --git a/plugins/c9.core/http-xhr.js b/plugins/c9.core/http-xhr.js index 2d79d209..4f81302f 100644 --- a/plugins/c9.core/http-xhr.js +++ b/plugins/c9.core/http-xhr.js @@ -83,13 +83,12 @@ define(function(require, module, exports) { } var timer; - var timedout = false; if (timeout) { timer = setTimeout(function() { - timedout = true; xhr.abort(); var err = new Error("Timeout"); err.code = "ETIMEOUT"; + err.data = {url: url, query: options.query}; done(err); }, timeout); } diff --git a/plugins/c9.ide.errorhandler/raygun.js b/plugins/c9.ide.errorhandler/raygun.js index bbd155d5..0e1ee90e 100644 --- a/plugins/c9.ide.errorhandler/raygun.js +++ b/plugins/c9.ide.errorhandler/raygun.js @@ -165,6 +165,7 @@ TraceKit.report = (function reportModuleWrapper() { else { if (lastExceptionStack) { + errorObj = lastException; TraceKit.computeStackTrace.augmentStackTraceWithInitialElement(lastExceptionStack, url, lineNo, message); stack = lastExceptionStack; lastExceptionStack = null; @@ -187,7 +188,7 @@ TraceKit.report = (function reportModuleWrapper() { } } - notifyHandlers(stack, 'from window.onerror'); + notifyHandlers(stack, 'from window.onerror', {errorObj: errorObj}); if (_oldOnerrorHandler) { return _oldOnerrorHandler.apply(this, arguments); @@ -201,7 +202,7 @@ TraceKit.report = (function reportModuleWrapper() { * @param {Error} ex */ function report(ex) { - var args = _slice.call(arguments, 1); + var args = _slice.call(arguments, 0); if (lastExceptionStack) { if (lastException === ex) { return; // already caught by an inner catch block, ignore @@ -1423,6 +1424,7 @@ window.TraceKit = TraceKit; 'DealPly is not defined': { factor: 10e5 }, "Cannot read property 'style' of null": { factor: 10e3 }, "Project with id '' does not exist": { factor: 10e2 }, + "Workspace not found": { factor: 10e2 }, }; var groupedErrors = [{ regex: /^((?:Project|User) with id ')(\d+)(' does not exist)/i, @@ -1462,13 +1464,13 @@ window.TraceKit = TraceKit; }); } - if (options === undefined) { + if (!options) { options = {}; } if (isEmpty(options.customData)) { if (typeof _customData === 'function') { - options.customData = _customData(); + options.customData = _customData(options.errorObj); } else { options.customData = _customData; }