thats confusing

This commit is contained in:
Alex Grintsvayg 2020-03-30 16:05:08 -04:00
parent dd528f03f6
commit 4a902597df
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -222,7 +222,7 @@ func (s *Server) handleCompositeRequest(data []byte) ([]byte, error) {
var request compositeRequest
err := json.Unmarshal(data, &request)
if err != nil {
var je json.SyntaxError
var je *json.SyntaxError
if ee.As(err, &je) {
return nil, errors.Err("invalid json at offset %d in data %s", je.Offset, hex.EncodeToString(data))
}