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 28, 2024
1 parent 687374a commit e81b448
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 changed (object 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 e81b448

Please sign in to comment.