From 188ef0b3a19e5fd24f6659044f715846f13ff737 Mon Sep 17 00:00:00 2001
From: Phan Huy Tran
Date: Wed, 15 Jan 2025 09:32:23 +0100
Subject: [PATCH] Display more accurate error message
---
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';
}