Catch errors in displaying a network image

This commit is contained in:
Vishnu Mohandas 2020-08-14 04:00:38 +05:30
parent 5000a0b3cd
commit 232df2a0bd

View file

@ -128,6 +128,9 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
_hasLoadedThumbnail = true;
});
}
}).catchError((e) {
_logger.severe("Could not load image " + widget.file.toString());
_encounteredErrorLoadingThumbnail = true;
});
});
}