diff --git a/peer/server.go b/peer/server.go index cc10e0f..d7db443 100644 --- a/peer/server.go +++ b/peer/server.go @@ -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)) }