diff options
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 { |