fixed return values from backend

This commit is contained in:
ari committed 2022-09-02 10:11:38 -04:00
1 parent c461640957
commit 7526b578ba
3 files changed
+20 -14

No files matched your search

+1 -7
View File
@@ -34,15 +34,9 @@ export const makeRemoteAPI = (baseURL: string): API => ({
return response;
} catch (err) {
console.error(err);
let error = String(err);
if (err instanceof Error) {
error += ` ${err.stack}`;
}
return {
ok: false,
error,
error: `Server error: ${method} ${path}`,
};
}
},