We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30cc371 commit d759de1Copy full SHA for d759de1
internal/controller/internal.go
@@ -83,7 +83,7 @@ func (c *Controller) PutCharacter(w http.ResponseWriter, r *http.Request) {
83
c.logger.Debug("character data sent", "data", data)
84
var errln error
85
if jsonErr, ok := err.(*json.SyntaxError); ok {
86
- errln = fmt.Errorf("%w ~ error near '%s' (offset %d)", err, string(data[jsonErr.Offset-1:]), jsonErr.Offset)
+ errln = fmt.Errorf("%w ~ error near '%s' (offset %d)", err, data, jsonErr.Offset)
87
}
88
89
c.logger.Error("failed to parse data", "error", errln)
0 commit comments