Skip to content

Commit

Permalink
apiv1 - fix expected number near offset
Browse files Browse the repository at this point in the history
  • Loading branch information
MindHunter86 committed Aug 12, 2024
1 parent 31d60f4 commit 1e1d79d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/utils/apiv1_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package utils
import (
"io"
"sync"
"strconv"

"github.com/mailru/easyjson"
)
Expand All @@ -22,7 +23,7 @@ type (
Code string
}
ApiError struct {
Code int
Code string
Message string
Description string
}
Expand Down Expand Up @@ -72,7 +73,7 @@ func RespondWithApiError(status int, msg, desc string, w io.Writer) (e error) {
defer ReleaseApiResponse(apirsp)

apirsp.Error.Code, apirsp.Error.Message, apirsp.Error.Description =
status, msg, desc
strconv.Itoa(status), msg, desc
apirsp.Data = nil

var buf []byte
Expand Down

0 comments on commit 1e1d79d

Please sign in to comment.