Apply suggestions from code review

Co-authored-by: Alex Unger <6905948+refs@users.noreply.github.com>
This commit is contained in:
Michael Barz
2022-01-19 11:57:42 +01:00
parent e0a4280de4
commit 5b9f31e870

View File

@@ -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")