ai-cfia / ai-cfia/ailab-datastore

[fertiscan] As a dev, I want to receive a proper error message when deleting a non-existent inspection

未關閉
#253 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。