forked from TrueCloudLab/frostfs-http-gw
[#18] Fix typo in error message
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
8f6be59e23
commit
53ee124b19
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ func FormErrorResponse(message string, err error) (int, string, []zap.Field) {
|
||||||
logFields = append(logFields, zap.String("error_detail", reason))
|
logFields = append(logFields, zap.String("error_detail", reason))
|
||||||
case client.IsErrObjectNotFound(err) || client.IsErrContainerNotFound(err):
|
case client.IsErrObjectNotFound(err) || client.IsErrContainerNotFound(err):
|
||||||
statusCode = fasthttp.StatusNotFound
|
statusCode = fasthttp.StatusNotFound
|
||||||
msg = "NotFound"
|
msg = "Not Found"
|
||||||
default:
|
default:
|
||||||
statusCode = fasthttp.StatusBadRequest
|
statusCode = fasthttp.StatusBadRequest
|
||||||
msg = fmt.Sprintf("%s: %v", message, err)
|
msg = fmt.Sprintf("%s: %v", message, err)
|
||||||
|
|
Loading…
Reference in a new issue