mirror of
https://github.com/restic/restic.git
synced 2025-10-09 07:33:53 +00:00
backend: Don't Wrap errors from url.Parse
The messages from url.Error.Error already start with the word "parse".
This commit is contained in:
@@ -52,7 +52,7 @@ func ParseConfig(s string) (interface{}, error) {
|
||||
// bucket name and prefix
|
||||
url, err := url.Parse(s[3:])
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "url.Parse")
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
if url.Path == "" {
|
||||
|
Reference in New Issue
Block a user