mirror of
https://github.com/prymitive/karma
synced 2026-08-23 11:56:20 +00:00
fix(backend): sanitize urls in errors
This commit is contained in:
+1
-1
@@ -31,6 +31,6 @@ func NewReader(uri string, timeout time.Duration, clientTransport http.RoundTrip
|
||||
case "file":
|
||||
return &FileURIReader{}, nil
|
||||
default:
|
||||
return nil, fmt.Errorf("unsupported URI scheme '%s' in '%s'", u.Scheme, u)
|
||||
return nil, fmt.Errorf("unsupported URI scheme '%s' in '%s'", u.Scheme, SanitizeURI(u.String()))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user