backend: replace /pkg/errors with errutil (#17065)

This commit is contained in:
Carl Bergquist
2019-05-15 12:20:17 +02:00
committed by GitHub
parent fdd421e24c
commit c55e6016bf
8 changed files with 42 additions and 22 deletions
+3 -2
View File
@@ -11,10 +11,11 @@
package values
import (
"github.com/pkg/errors"
"os"
"reflect"
"strconv"
"github.com/grafana/grafana/pkg/util/errutil"
)
type IntValue struct {
@@ -33,7 +34,7 @@ func (val *IntValue) UnmarshalYAML(unmarshal func(interface{}) error) error {
}
val.Raw = interpolated.raw
val.value, err = strconv.Atoi(interpolated.value)
return errors.Wrap(err, "cannot convert value int")
return errutil.Wrap("cannot convert value int", err)
}
func (val *IntValue) Value() int {