-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exception objects are not directly printable, so trying to render it in an Alert or with `console.warn()` just results in an empty string. That makes debugging really hard, as there is no corresponding entry in the journal either. Use `.toString()` on the exception to render them properly. Also show the actual exception text in the Alert in the UI. Still keep the console.warn()s, so that we can do naughty matching on them. While at it, eliminate the unnecessary Promise wrappers, and use chaining.
- Loading branch information
1 parent
86fb923
commit db99329
Showing
1 changed file
with
42 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters