Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3320

Use x/xerrors package when working with errors

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              francischuang Francis Chuang
              francischuang Francis Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m