mirror of
https://github.com/restic/restic.git
synced 2026-10-16 14:47:11 +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:
1 parent
b150dd0235
commit
d9002f050e
3 files changed
+3
-4
No files matched your search
@@ -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