From b3a393d315ff9add89ede5ce014c095b9fed151c Mon Sep 17 00:00:00 2001 From: ErBW_s <94068488+ErBWs@users.noreply.github.com> Date: Sun, 8 Dec 2024 12:47:14 +0800 Subject: [PATCH] better null check toast --- lib/pages/player/player_item.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/player/player_item.dart b/lib/pages/player/player_item.dart index 623cdc00..ad6adf12 100644 --- a/lib/pages/player/player_item.dart +++ b/lib/pages/player/player_item.dart @@ -689,8 +689,8 @@ class _PlayerItemState extends State } else { SmartDialog.showToast('截图保存失败:${result.errorMessage}'); } - } catch (_) { - SmartDialog.showToast('截图失败'); + } catch (e) { + SmartDialog.showToast('截图失败:$e'); } }