aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/http_loader.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2015-08-28 15:11:30 -0400
committerJosh Matthews <josh@joshmatthews.net>2015-08-28 15:11:30 -0400
commit2360db68b1846c579b52d9a8c42bc05ae5ab8a26 (patch)
tree3bf0e2b85ede8f38e0aedd78231d074bd959829c /components/net/http_loader.rs
parent6431e8da43817e8a6b1e4757afbcf45c1a629707 (diff)
downloadservo-2360db68b1846c579b52d9a8c42bc05ae5ab8a26.tar.gz
servo-2360db68b1846c579b52d9a8c42bc05ae5ab8a26.zip
Improve debuggability of http_loader panics.
Diffstat (limited to 'components/net/http_loader.rs')
-rw-r--r--components/net/http_loader.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs
index bc47b6aa709..e59ad1521bf 100644
--- a/components/net/http_loader.rs
+++ b/components/net/http_loader.rs
@@ -42,8 +42,8 @@ pub fn factory(resource_mgr_chan: IpcSender<ControlMsg>,
devtools_chan: Option<Sender<DevtoolsControlMsg>>,
hsts_list: Arc<Mutex<HSTSList>>)
-> Box<FnBox(LoadData, LoadConsumer, Arc<MIMEClassifier>) + Send> {
- box move |load_data, senders, classifier| {
- spawn_named("http_loader".to_owned(),
+ box move |load_data: LoadData, senders, classifier| {
+ spawn_named(format!("http_loader for {}", load_data.url.serialize()),
move || load(load_data, senders, classifier, resource_mgr_chan, devtools_chan, hsts_list))
}
}