danielgek / nativescript-sentry

Sentry java/cocoa for nativescript
Apache License 2.0
27 stars 30 forks source link

CaptureException not working as expected #28

Open bbroereES opened 5 years ago

bbroereES commented 5 years ago

When using CaptureException, in Sentry I get something like this instead of a nice stack trace: {"message":"test","stacktrace":"onLog@file:///app/bundle.js:1398:102 [angular]\n_log@file:///app/vendor.js:88165:38 [angular]\nerror@file:///app/vendor.js:88082:18 [angular]\nerror@file:///app/bundle.js:1306:26 [angular]\ntestError@file:///app/0.js:218:26 [angular]\n\ncallWithDebugContext@file:///app/vendor.js:60013:30 [angular]\ndispatchEvent@file:///app/vendor.js:56392:36 [angular]\nfile:///app/vendor.js:49363:51 [angular]\n__tryOrUnsub@file:///app/vendor.js:92013:20 [angular]\nnext@file:///app/vendor.js:91951:34 [angular]\n_next@file:///app/vendor.js:91895:30 [angular]\nnext@file:///app/vendor.js:91872:23 [angular]\nnext@file:///app/vendor.js:91646:29 [angular]\nemit@file:///app/vendor.js:49335:80 [angular]\nonTap@file:///app/bundle.js:1749:22 [angular]\n\ncallWithDebugContext@file:///app/vendor.js:60013:30 [angular]\ndispatchEvent@file:///app/vendor.js:56392:36 [angular]\nfile:///app/vendor.js:81443:31 [angular]\nonInvoke@file:///app/vendor.js:53135:39 [angular]\nzonedCallback@file:///app/vendor.js:81442:27 [<root>]\nnotify@file:///app/vendor.js:105659:31 [<root>]\n_emit@file:///app/vendor.js:105676:24 [<root>]\ntap@file:///app/vendor.js:115440:24 [<root>]\nUIApplicationMain@[native code] [<root>]\nstart@file:///app/vendor.js:102776:26 [<root>]\nrun@file:///app/vendor.js:102804:10 [<root>]\nbootstrapNativeScriptApp@file:///app/vendor.js:80906:26 [<root>]\nbootstrapApp@file:///app/vendor.js:80824:38 [<root>]\nbootstrapModule@file:///app/vendor.js:80808:26 [<root>]\n./main.ts@file:///app/bundle.js:2569:116 [<root>]\n__webpack_require__@file:///app/bundle.js:76:34 [<root>]\ncheckDeferredModules@file:///app/bundle.js:45:42 [<root>]\nfile:///app/bundle.js:166:38 [<root>]\nanonymous@file:///app/bundle.js:167:12 [<root>]\nevaluate@[native code] [<root>]\nmoduleEvaluation@[native code] [<root>]\npromiseReactionJob@[native code] [<root>]\nrequire@[native code] [<root>]\nanonymous@file:///app/starter.js:2:8 [<root>]\nevaluate@[native code] [<root>]\nmoduleEvaluation@[native code] [<root>]\npromiseReactionJob@[native code] [<root>]","name":"Error"}

Note, in Sentry there are no newlines, this is just one blob of text.