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:
greatroar committed 2022-12-17 09:41:07 +01:00
1 parent b150dd0235
commit d9002f050e
3 files changed
+3 -4

No files matched your search

+1 -2
View File
@@ -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()