diff options
author | Michael Hunteman <michael@huntm.net> | 2024-09-06 09:30:41 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-09-06 09:30:41 -0700 |
commit | 218b7677d722ce08a4f139f67bbae74f43b9a158 (patch) | |
tree | e5a9908b2249252a00833b02d02825c9f6ba73a3 /server | |
parent | 46f925663e595fa8dd87f7aa15a0061abcfae3d7 (diff) |
Fix error message
Diffstat (limited to 'server')
-rw-r--r-- | server/admin/store.go | 2 | ||||
-rw-r--r-- | server/guest/handler.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/admin/store.go b/server/admin/store.go index 437e6af..c466b95 100644 --- a/server/admin/store.go +++ b/server/admin/store.go @@ -30,7 +30,7 @@ func (store Store) Find(requestAdmin Admin) (Admin, error) { if found { return admin, nil } - return Admin{}, errors.New("admin not found") + return Admin{}, errors.New("Admin not found") } func createAdmin(requestAdmin Admin, adminRows pgx.Rows) (Admin, bool) { diff --git a/server/guest/handler.go b/server/guest/handler.go index 04adc0c..008aeef 100644 --- a/server/guest/handler.go +++ b/server/guest/handler.go @@ -327,7 +327,7 @@ func (handler *GuestHandler) deleteGuest(request *http.Request) *appError { return err } if handler.findID(request) { - return &appError{errors.New("ID not found"), "ID not found", http.StatusNotFound} + return &appError{errors.New("ID not found"), "{ \"message\": \"ID not found\" }", http.StatusNotFound} } guestID, err := getID(request) if err != nil { |