util: Port all code to new errwrap package
This should keep things more uniform.
This commit is contained in:
@@ -54,7 +54,8 @@ function consistent-imports() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
if grep $'\t"github.com/pkg/errors"' "$1"; then # import as errwrap
|
||||
# import as github.com/purpleidea/mgmt/util/errwrap
|
||||
if grep $'\t"github.com/pkg/errors"' "$1"; then
|
||||
return 1
|
||||
fi
|
||||
if grep $'\t"github.com/hashicorp/go-multierror"' "$1"; then # import as multierr
|
||||
|
||||
Reference in New Issue
Block a user