This commit is contained in:
ari committed 2022-04-23 18:10:20 -04:00
1 parent baada590c5
commit 44ad46cff3
6 files changed
+13 -6

No files matched your search

+7 -1
View File
@@ -33,9 +33,15 @@ 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: `${err} ${err?.stack}`,
error,
}
}
}