From 17912451d67d35f0eaa156e881d63dbe845919d3 Mon Sep 17 00:00:00 2001 From: Huy Date: Wed, 15 Jan 2025 08:33:06 +0000 Subject: [PATCH] Display more accurate error message (#35) Co-authored-by: Phan Huy Tran Reviewed-on: http://git.simonis.lol/angular/ems-frontend/pulls/35 Reviewed-by: Constantin Simonis --- src/app/qualification/delete/delete.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/qualification/delete/delete.component.ts b/src/app/qualification/delete/delete.component.ts index 0d849d0..532c628 100644 --- a/src/app/qualification/delete/delete.component.ts +++ b/src/app/qualification/delete/delete.component.ts @@ -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'; }