I have a code with AngularJS:
service.doSomething() .then(function(result) { //do something with the result });
In AngularJS 1.5.
This has been fixed with fix($q): Add traceback to unhandled promise rejections -- Commit 316f60f and the fix is included in the v1.6.1 release.