mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update err handler (#12)
This commit is contained in:
@ -93,7 +93,7 @@ func handleGetResource(w http.ResponseWriter, r *http.Request) {
|
||||
resource, err := store.GetResourceByIdAndFilename(resourceId, filename)
|
||||
|
||||
if err != nil {
|
||||
e.ErrorHandler(w, "DATABASE_ERROR", err.Error())
|
||||
e.ErrorHandler(w, "RESOURCE_NOT_FOUND", err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user