Display more accurate error message (#35)
Co-authored-by: Phan Huy Tran <p.tran@neusta.de> Reviewed-on: http://git.simonis.lol/angular/ems-frontend/pulls/35 Reviewed-by: Constantin Simonis <constantin@simonis.lol>
This commit is contained in:
parent
417acde6ac
commit
7ea79c64ef
@ -42,7 +42,7 @@ export class DeleteComponent {
|
||||
|
||||
if (error.error.message.includes('SQL')) {
|
||||
// The API message is undescriptive but this is the most common
|
||||
this.apiError = 'This qualification cannot be modified because it is currently assigned to one or more employees';
|
||||
this.apiError = 'This qualification cannot be deleted because it is currently assigned to one or more employees';
|
||||
} else {
|
||||
this.apiError = 'API Error';
|
||||
}
|
||||
|
Reference in New Issue
Block a user