Francis Chuang created CALCITE-3320:
---------------------------------------

             Summary: Use error wrapping in stdlib
                 Key: CALCITE-3320
                 URL: https://issues.apache.org/jira/browse/CALCITE-3320
             Project: Calcite
          Issue Type: Improvement
          Components: avatica-go
            Reporter: Francis Chuang
            Assignee: Francis Chuang


In Go 1.13, it's possible to wrap errors using `fmt.Errorf("%w", err)`. 

We need to update places where errors are wrapped to use the `%w` placeholder. 

Use the golang.org/x/xerrors for compatibility with Go versions before 1.13.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to