Catch errors in displaying a network image
This commit is contained in:
parent
5000a0b3cd
commit
232df2a0bd
1 changed files with 3 additions and 0 deletions
|
@ -128,6 +128,9 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
|
|||
_hasLoadedThumbnail = true;
|
||||
});
|
||||
}
|
||||
}).catchError((e) {
|
||||
_logger.severe("Could not load image " + widget.file.toString());
|
||||
_encounteredErrorLoadingThumbnail = true;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue