diff options
author | Emmanuel Rodriguez <emmanuel.rodriguez@gmail.com> | 2013-08-20 10:21:23 +0200 |
---|---|---|
committer | Emmanuel Rodriguez <emmanuel.rodriguez@gmail.com> | 2013-08-20 20:43:31 +0200 |
commit | 7c8e29e4cc2219275042a228abea0657bb7633cd (patch) | |
tree | a05987115a5295ea666dab166327b492ea19995e /src | |
parent | 9c36bfe7daaa4b0274bc1cfc3bf596704442d489 (diff) | |
download | volley-7c8e29e4cc2219275042a228abea0657bb7633cd.tar.gz |
ImageRequest.doParse() now adds NetworkResponse to all ParseError created
This will help the caller to debug which image couldn't be parsed by
peeking at the NetworkResponse. doParse() already returns the
NetworkResponse of bitmaps successfully parsed, adding it to failed bitmaps
should not take too much overhead.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/volley/toolbox/ImageRequest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/volley/toolbox/ImageRequest.java b/src/com/android/volley/toolbox/ImageRequest.java index b70c906..2ebe015 100644 --- a/src/com/android/volley/toolbox/ImageRequest.java +++ b/src/com/android/volley/toolbox/ImageRequest.java @@ -175,7 +175,7 @@ public class ImageRequest extends Request<Bitmap> { } if (bitmap == null) { - return Response.error(new ParseError()); + return Response.error(new ParseError(response)); } else { return Response.success(bitmap, HttpHeaderParser.parseCacheHeaders(response)); } |