diff --git a/src/components/util/url.rs b/src/components/util/url.rs index 19f5eaaece3..5010c374769 100644 --- a/src/components/util/url.rs +++ b/src/components/util/url.rs @@ -81,7 +81,7 @@ pub fn parse_url(str_url: &str, base_url: Option) -> Url { }; // FIXME: Need to handle errors - url::from_str(str_url).unwrap() + url::from_str(str_url).ok().expect("URL parsing failed") } #[cfg(test)]