[ACS-5831] Adding generic error to Library Modal. (#9025)

* [ACS-5831] Adding generic error to Library Modal.

* change

* change

* lint issue fix
This commit is contained in:
Aayush Rohila 2023-10-25 17:50:14 +05:30 committed by GitHub
parent 8bd24dbb7c
commit e6bc457d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,6 +210,8 @@ export class LibraryDialogComponent implements OnInit, OnDestroy {
this.form.controls['id'].setErrors({
message: 'LIBRARY.ERRORS.CONFLICT'
});
} else {
this.notificationService.showError(errorMessage);
}
} catch {
this.notificationService.showError(errorMessage);