Skip to content

Commit

Permalink
fix: validation returns illegal state error
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszjenek committed Oct 25, 2024
1 parent 30f22f3 commit b9920ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/services/ErrorHandlerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ export class ErrorHandlerService implements IErrorHandlerService {
this.logger.error(error.details());
this.showErrorMessage(error.message());
} else if (error instanceof Error) {
// Validation may fail if the document change (old version is already disposed) during the validation process
if (error.message === 'illegal state - object is disposed') {
return;
}

this.logger.error(
JSON.stringify({
message: error.message,
Expand Down

0 comments on commit b9920ff

Please sign in to comment.