kevinpang / edhrec-site

edhrec web frontend
http://edhrec.com
MIT License
7 stars 4 forks source link

Add more info to exception logs #44

Open kevinpang opened 10 years ago

kevinpang commented 10 years ago

Example exception:

Exception { message: "", result: 2147500037, name: "NS_ERROR_FAILURE", filename: "http://edhrec.com/app/deck_generator/deck_generator_controller.js?v=21", lineNumber: 46, columnNumber: 0, inner: null, data: null, stack: "resetCursor@http://edhrec.com/app/deck_generator/deck_generator_controller.js?v=21:46:6 $scope.openExportDialog@http://edhrec.com/app/deck_generator/deck_generator_controller.js?v=21:39:0 db.prototype.functionCall/<@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js:196:109 Ac[c]</<.compile/</</f@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js:224:186 Ke/this.$get</h.prototype.$eval@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js:123:134 Ke/this.$get</h.prototype.$apply@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js:123:348 Ac[c]</<.compile/</<@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js:224:236 ef/c@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js:32:383 " } undefined

kevinpang commented 10 years ago

Looks like some fields are browser-specific. Look into stacktrace.js which should help resolve incompatibilities across browsers.