Wrap invoke rejection reasons in Error instance
This way we get stack traces and more informative console logs (instead of “[Object object]”).
1 file changed
+25
-2
30710d51
→
a3295dcb
modified src/lib/invoke.ts
@@ -14,6 +14,18 @@ export async function invoke<T = null>(
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -25,7 +37,14 @@ async function withTestBackend<T>(
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -38,7 +57,11 @@ async function withTestBackend<T>(
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|