From 5b9f31e8704c0489163d613d14aaa098dcfe11a0 Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Wed, 19 Jan 2022 11:57:42 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Alex Unger <6905948+refs@users.noreply.github.com> --- graph/pkg/service/v0/drives.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph/pkg/service/v0/drives.go b/graph/pkg/service/v0/drives.go index 370da01ae..79204b17c 100644 --- a/graph/pkg/service/v0/drives.go +++ b/graph/pkg/service/v0/drives.go @@ -127,8 +127,8 @@ func (g Graph) GetSingleDrive(w http.ResponseWriter, r *http.Request) { return case res.Status.Code != cs3rpc.Code_CODE_OK: if res.Status.Code == cs3rpc.Code_CODE_NOT_FOUND { - g.logger.Error().Str("driveId", driveId).Msg("no space found") - errorcode.ItemNotFound.Render(w, r, http.StatusNotFound, fmt.Sprintf("no space found with id %s", driveId)) + g.logger.Error().Str("driveId", driveId).Msg(fmt.Sprintf("space with id `%s` not found", driveId)) + errorcode.ItemNotFound.Render(w, r, http.StatusNotFound, fmt.Sprintf("space with id `%s` not found", driveId)) return } g.logger.Error().Err(err).Msg("error sending list storage spaces grpc request")