diff --git a/ng-app/src/api.ts b/ng-app/src/api.ts index 98ff106..e5db6e9 100644 --- a/ng-app/src/api.ts +++ b/ng-app/src/api.ts @@ -215,7 +215,11 @@ const handler = { return await tauri.invoke(path[0],arg) } }catch (e) { - throw JSON.parse(e); + try { + throw JSON.parse(e); + } catch (f) { + throw e; + } } } },