ai-cfia / ai-cfia/ailab-datastore
[fertiscan] As a dev, I want to receive a proper error message when deleting a non-existent inspection
Open
- Dominant language
- Python
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Description
**Context**
When attempting to delete an inspection that was already deleted, the system returns a database error:
```
Inspector is not the creator of inspection
CONTEXT: PL/pgSQL function delete_inspection(uuid,uuid) line 11 at RAISE
```
**Problem Statement**
Instead of this database error, the system should return such error message as "Inspection not found."
## Acceptance Criteria
- Attempting to delete a non-existent inspection should return an "Inspection not found" error.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.