Display more accurate error message #35
@ -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