aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/image_cache_thread.rs
diff options
context:
space:
mode:
authorRavi Shankar <wafflespeanut@gmail.com>2016-01-01 00:01:24 +0530
committerJosh Matthews <josh@joshmatthews.net>2016-04-20 12:38:35 -0400
commit5e6f32a59bcefd15e2a081a65b4ea44161e913f8 (patch)
tree7bb9e9c07e3967a9f13a337b18bcf35895509989 /components/net/image_cache_thread.rs
parent8d988f20c12e0a5267e79650a90310951c66ca77 (diff)
downloadservo-5e6f32a59bcefd15e2a081a65b4ea44161e913f8.tar.gz
servo-5e6f32a59bcefd15e2a081a65b4ea44161e913f8.zip
Propagating the load errors from network loader
Diffstat (limited to 'components/net/image_cache_thread.rs')
-rw-r--r--components/net/image_cache_thread.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net/image_cache_thread.rs b/components/net/image_cache_thread.rs
index 91a0cf0dc32..660ba87cb4e 100644
--- a/components/net/image_cache_thread.rs
+++ b/components/net/image_cache_thread.rs
@@ -10,7 +10,7 @@ use net_traits::image_cache_thread::ImageResponder;
use net_traits::image_cache_thread::{ImageCacheChan, ImageCacheCommand, ImageCacheThread, ImageState};
use net_traits::image_cache_thread::{ImageCacheResult, ImageOrMetadataAvailable, ImageResponse, UsePlaceholder};
use net_traits::{AsyncResponseTarget, ControlMsg, LoadConsumer, LoadData, ResourceThread};
-use net_traits::{ResponseAction, LoadContext};
+use net_traits::{ResponseAction, LoadContext, NetworkError};
use std::borrow::ToOwned;
use std::collections::HashMap;
use std::collections::hash_map::Entry::{Occupied, Vacant};
@@ -44,7 +44,7 @@ struct PendingLoad {
metadata: Option<ImageMetadata>,
// Once loading is complete, the result of the operation.
- result: Option<Result<(), String>>,
+ result: Option<Result<(), NetworkError>>,
listeners: Vec<ImageListener>,
// The url being loaded. Do not forget that this may be several Mb