Skip to content

Commit

Permalink
add generic error message for analysis service
Browse files Browse the repository at this point in the history
  • Loading branch information
AFPMedialab committed Jul 2, 2024
1 parent 2fd51b1 commit 8be330e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"baseUrl": "./src",
"checkJs": true,
"checkJs": false,
"jsx": "react"
},
"exclude": ["node_modules", "**/node_modules", "dist", "build"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ export const useAnalysisWrapper = (
axios
.post(apiUrl)
.then((response) => setData(response["data"]))
.catch((error) => handleError(error));
.catch((error) => {
console.log("error", error);
handleError("analysis_service_error");
});
}
// eslint-disable-next-line
}, [apiUrl, processUrl]);
Expand Down

0 comments on commit 8be330e

Please sign in to comment.