aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2014-02-11 14:25:09 -0800
committerKeegan McAllister <kmcallister@mozilla.com>2014-02-11 15:33:08 -0800
commit8a7cc86aa9759d7b49f7ba524e2f0d42c96bc59f (patch)
tree334efbee8f4814f9164edecf8a2c8280478c4551 /src/components
parentd72379829800db3a6248963f0cb2c731138af061 (diff)
downloadservo-8a7cc86aa9759d7b49f7ba524e2f0d42c96bc59f.tar.gz
servo-8a7cc86aa9759d7b49f7ba524e2f0d42c96bc59f.zip
Provide an error message for URL parse failure
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)]