[#18] Fix typo in error message

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
pull/23/head
Denis Kirillov 2023-03-22 10:43:34 +03:00
parent 8f6be59e23
commit 53ee124b19
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ func FormErrorResponse(message string, err error) (int, string, []zap.Field) {
logFields = append(logFields, zap.String("error_detail", reason))
case client.IsErrObjectNotFound(err) || client.IsErrContainerNotFound(err):
statusCode = fasthttp.StatusNotFound
msg = "NotFound"
msg = "Not Found"
default:
statusCode = fasthttp.StatusBadRequest
msg = fmt.Sprintf("%s: %v", message, err)