[#18] Fix typo in error message

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
Denis Kirillov 2023-03-22 10:43:34 +03:00
parent 8f6be59e23
commit 53ee124b19

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)