Provide `error.code` to `InvokeError`
We decide during onboarding to display different things based on the error code received from the backend.
Due to the new InvokeError type we lost this error.code string.
1 file changed
+5
-3
b65b6daa
→
0336da38
modified src/lib/invoke.ts
@@ -20,9 +20,11 @@ export async function invoke<T = null>(
|
|
|
|
|
|
| + | |
|
|
| - | |
| + | |
|
|
| + | |
|
|
|
|
|
@@ -41,7 +43,7 @@ async function withTestBackend<T>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -59,7 +61,7 @@ async function withTestBackend<T>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|