-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(client): Log global error stack trace #2813
feat(client): Log global error stack trace #2813
Conversation
closes: 2812
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I signed it! |
Output is changed from .../apps/salestrader/src/accountselector UTs in Chrome 60.0.3112 (Mac OS X 10.12.6): error: true in 127481ms
Uncaught ReferenceError: j is not defined
at http://localhost:9876/context.html:18 to this .../apps/salestrader/src/accountselector UTs in Chrome: error: true in 9100ms
Uncaught ReferenceError: j is not defined
at http://localhost:9876/context.html:18:60
ReferenceError: j is not defined
at eval (eval at <anonymous> (http://localhost:9876/absolute/Users/briand/dev/fe/converted/salestrader/apps/salestrader/node_modules/@caplin/karma-test-runner/dist/entries/uts-test-entry.js?cc7b3bbdb1aa25a9cb61bb06401cfedc8a05761b:4447:1), <anonymous>:18:60)
at Object.<anonymous> (http://localhost:9876/absolute/Users/briand/dev/fe/converted/salestrader/apps/salestrader/node_modules/@caplin/karma-test-runner/dist/entries/uts-test-entry.js?cc7b3bbdb1aa25a9cb61bb06401cfedc8a05761b:4447:1)
at __webpack_require__ (http://localhost:9876/absolute/Users/briand/dev/fe/converted/salestrader/apps/salestrader/node_modules/@caplin/karma-test-runner/dist/entries/uts-test-entry.js?cc7b3bbdb1aa25a9cb61bb06401cfedc8a05761b:20:30)
at eval (eval at <anonymous> (http://localhost:9876/absolute/Users/briand/dev/fe/converted/salestrader/apps/salestrader/node_modules/@caplin/karma-test-runner/dist/entries/uts-test-entry.js?cc7b3bbdb1aa25a9cb61bb06401cfedc8a05761b:10384:1), <anonymous>:8:29)
at eval (eval at <anonymous> (http://localhost:9876/absolute/Users/briand/dev/fe/converted/salestrader/apps/salestrader/node_modules/@caplin/karma-test-runner/dist/entries/uts-test-entry.js?cc7b3bbdb1aa25a9cb61bb06401cfedc8a05761b:10384:1), <anonymous>:65:3)
at Object.<anonymous> (http://localhost:9876/absolute/Users/briand/dev/fe/converted/salestrader/apps/salestrader/node_modules/@caplin/karma-test-runner/dist/entries/uts-test-entry.js?cc7b3bbdb1aa25a9cb61bb06401cfedc8a05761b:10384:1)
at __webpack_require__ (http://localhost:9876/absolute/Users/briand/dev/fe/converted/salestrader/apps/salestrader/node_modules/@caplin/karma-test-runner/dist/entries/uts-test-entry.js?cc7b3bbdb1aa25a9cb61bb06401cfedc8a05761b:20:30)
at webpackContext (eval at <anonymous> (http://localhost:9876/absolute/Users/briand/dev/fe/converted/salestrader/apps/salestrader/node_modules/@caplin/karma-test-runner/dist/entries/uts-test-entry.js?cc7b3bbdb1aa25a9cb61bb06401cfedc8a05761b:5285:1), <anonymous>:6:9)
at Array.forEach (<anonymous>)
at eval (eval at <anonymous> (http://localhost:9876/absolute/Users/briand/dev/fe/converted/salestrader/apps/salestrader/node_modules/@caplin/karma-test-runner/dist/entries/uts-test-entry.js?cc7b3bbdb1aa25a9cb61bb06401cfedc8a05761b:6261:1), <anonymous>:184:21) Which is a slight improvement. I imagine for others it might provide far more useful output. |
Closes #2812 |
If this got to merged, could it be made configurable? Sometimes having Karma spit hundred lines of output is not always convenient. |
@Florian-R It's for global syntax errors, their would normally only be one. From above the function I modified. // error during js file loading (most likely syntax error)
// we are not going to execute at all. `window.onerror` callback. |
Why is the CLA taking so long to go green? |
Thank you |
closes: 2812