mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
Remove github.com/pkg/errors and replace with std library version
This is possible now that we no longer support go1.12 and brings rclone into line with standard practices in the Go world. This also removes errors.New and errors.Errorf from lib/errors and prefers the stdlib errors package over lib/errors.
This commit is contained in:
@@ -11,7 +11,6 @@ import (
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/rclone/rclone/fs/config/configmap"
|
||||
"github.com/rclone/rclone/fs/config/configstruct"
|
||||
)
|
||||
@@ -260,7 +259,7 @@ func Find(name string) (*RegInfo, error) {
|
||||
return item, nil
|
||||
}
|
||||
}
|
||||
return nil, errors.Errorf("didn't find backend called %q", name)
|
||||
return nil, fmt.Errorf("didn't find backend called %q", name)
|
||||
}
|
||||
|
||||
// MustFind looks for an Info object for the type name passed in
|
||||
|
||||
Reference in New Issue
Block a user