Display more accurate error message #35

Merged
ptran merged 1 commits from refactor/accurate-error into main 2025-01-15 08:33:07 +00:00

View File

@ -42,7 +42,7 @@ export class DeleteComponent {
if (error.error.message.includes('SQL')) { if (error.error.message.includes('SQL')) {
// The API message is undescriptive but this is the most common // 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 { } else {
this.apiError = 'API Error'; this.apiError = 'API Error';
} }