Improved error handline, fixes #5

This commit is contained in:
Alicia Sykes committed 2023-07-22 00:19:13 +01:00
1 parent f9437ea964
commit b2204728ea
3 files changed
+3 -10

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ const useMotherOfAllHooks = <ResultType = any>(params: UseIpAddressProps<ResultT
})
.catch((err) => {
// Something fucked up, log the error
updateLoadingJobs(jobId, 'error', err.message, reset);
updateLoadingJobs(jobId, 'error', err.error || err.message, reset);
throw err;
})
}