Skip to content

Commit 5379bfd

Browse files
committed
https://github.com/Baseflow/flutter_cached_network_image/issues/336
1 parent 3fcd65a commit 5379bfd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cached_network_image/lib/src/image_provider/_image_loader.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class ImageLoader implements platform.ImageLoader {
122122
yield decoded;
123123
}
124124
}
125-
} catch (e) {
125+
} catch (e, stacktrace) {
126126
// Depending on where the exception was thrown, the image cache may not
127127
// have had a chance to track the key in the cache at all.
128128
// Schedule a microtask to give the cache a chance to add the key.
@@ -131,7 +131,8 @@ class ImageLoader implements platform.ImageLoader {
131131
});
132132

133133
errorListener?.call();
134-
rethrow;
134+
chunkEvents.addError(e, stacktrace);
135+
// rethrow;
135136
} finally {
136137
await chunkEvents.close();
137138
}

0 commit comments

Comments
 (0)