aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/util/url.rs2
1 files changed, 1 insertions, 1 deletions
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>) -> Url {
};
// FIXME: Need to handle errors
- url::from_str(str_url).unwrap()
+ url::from_str(str_url).ok().expect("URL parsing failed")
}
#[cfg(test)]