Skip to content

Commit 28a6732

Browse files
authored
Add comment to Raven.wrap so people stop blaming Raven.js (#847)
1 parent b1d09c1 commit 28a6732

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/raven.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ Raven.prototype = {
280280
while(i--) args[i] = deep ? self.wrap(options, arguments[i]) : arguments[i];
281281

282282
try {
283+
// Attempt to invoke user-land function
284+
// NOTE: If you are a Sentry user, and you are seeing this stack frame, it
285+
// means Raven caught an error invoking your application code. This is
286+
// expected behavior and NOT indicative of a bug with Raven.js.
283287
return func.apply(this, args);
284288
} catch(e) {
285289
self._ignoreNextOnError();

0 commit comments

Comments
 (0)