We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fcd65a commit 5379bfdCopy full SHA for 5379bfd
cached_network_image/lib/src/image_provider/_image_loader.dart
@@ -122,7 +122,7 @@ class ImageLoader implements platform.ImageLoader {
122
yield decoded;
123
}
124
125
- } catch (e) {
+ } catch (e, stacktrace) {
126
// Depending on where the exception was thrown, the image cache may not
127
// have had a chance to track the key in the cache at all.
128
// Schedule a microtask to give the cache a chance to add the key.
@@ -131,7 +131,8 @@ class ImageLoader implements platform.ImageLoader {
131
});
132
133
errorListener?.call();
134
- rethrow;
+ chunkEvents.addError(e, stacktrace);
135
+ // rethrow;
136
} finally {
137
await chunkEvents.close();
138
0 commit comments