Tweak error message

This commit is contained in:
Ming Ming 2021-10-17 18:16:53 +08:00
parent 8652c63091
commit 2502c85ff1

View file

@ -263,7 +263,7 @@ class _SharingBrowserState extends State<SharingBrowser> {
} else if (shares.first is ListSharingAlbum) { } else if (shares.first is ListSharingAlbum) {
return _buildAlbumItem(context, shares); return _buildAlbumItem(context, shares);
} else { } else {
throw StateError(""); throw StateError("Unknown item type: ${shares.first.runtimeType}");
} }
} }