Skip to content

Misleading source of exception (raven.js) #227

@sergunich

Description

@sergunich

With any applied plugin the source of top stack frame exception is code from raven.js:

  try {
    /*jshint -W040*/
    return func.apply(this, args);
  } catch(e) {
    Raven.captureException(e, options);
    throw e;  // <-- source of exception
  }

Example of stacktrace:

/static/libs/raven/raven.js  ? in ? at line 1270
/static/bookmarks.js  ? in Backbone.Model.extend.initialize at line 158:13
/static/libs/backbone-1.1.0.js  ? in Backbone.Model at line 256:21
/static/bookmarks.js  ? in ? at line 146:19
/  ? in requireDep at line 37:60
/  ? in initWidgets at line 53:42
/  ? in HTMLDocument.<anonymous> at line 402:9
/static/libs/raven/raven.js  ? in HTMLDocument.wrapped at line 1267:29
/static/libs/jquery-1.11.0.js  ? in fire at line 3099:30

Which is confusing because link to this file is used as title for error in stream dashboard:

http://192.168.1.83:9000/static/libs/raven/raven.js   //example of title

With IE8 situation is worse, because we receive only top stack frame. so for all exceptions we would have something like this stacktrace:

http://192.168.1.83:9000/static/libs/raven/raven.js

Which is useless.

I use raven.js ver. 1.1.15 from dist folder.
Is this bug or I just don't understand something?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions