mirror of
https://github.com/restic/restic.git
synced 2025-12-03 22:21:47 +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:
@@ -34,9 +34,8 @@ func ParseConfig(s string) (interface{}, error) {
|
||||
s = prepareURL(s)
|
||||
|
||||
u, err := url.Parse(s)
|
||||
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "url.Parse")
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
cfg := NewConfig()
|
||||
|
||||
Reference in New Issue
Block a user