From f0ed21802749e000ca401d3320a4588d8067f3cb Mon Sep 17 00:00:00 2001 From: Ben Vinegar Date: Fri, 3 Feb 2017 15:27:23 -0800 Subject: [PATCH] Add comment to Raven.wrap so people stop blaming Raven.js --- src/raven.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/raven.js b/src/raven.js index 4ae53d1407e6..0943e93fb28a 100644 --- a/src/raven.js +++ b/src/raven.js @@ -280,6 +280,10 @@ Raven.prototype = { while(i--) args[i] = deep ? self.wrap(options, arguments[i]) : arguments[i]; try { + // Attempt to invoke user-land function + // NOTE: If you are a Sentry user, and you are seeing this stack frame, it + // means Raven caught an error invoking your application code. This is + // expected behavior and NOT indicative of a bug with Raven.js. return func.apply(this, args); } catch(e) { self._ignoreNextOnError();