Commit 622a92b
committed
Catch errors in features with async init functions
enableFeature has a try/catch that helps show which feature fails. Init function however were not awaited so this only caught sync features with sync init functions.
This change does not affect enableFeature's core feature since errors are still caught and since enableFeature() itself is never awaited.
Before: https://i.imgur.com/33njqSI.png
After: https://i.imgur.com/Y5R4Dqi.png1 parent 7fce495 commit 622a92b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments