Skip to content

Commit

Permalink
chore: added 409 error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
irmastnt committed Nov 26, 2024
1 parent 6533df3 commit 4f50343
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export class AppErrorHandler implements ErrorHandler {
message = `There was a timeout issue with one or several requests.
The resource(s) or a part of it cannot be displayed correctly.
Failed on ${url}`;
} else if (error.status === 409) {
message = (error as AjaxError).response['knora-api:error'];
} else {
message = 'There is an error on our side. Please contact [email protected]';
}
Expand Down

0 comments on commit 4f50343

Please sign in to comment.