ai-cfia / ai-cfia/ailab-datastore
[fertiscan] As a dev, I want to receive a proper error message when deleting a non-existent inspection
未關閉
- 主要語言
- Python
- 星號
- 3
- 分支
- 0
- PR 合併指標
- 30 天內沒有已合併 PR
描述
## 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.
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。