fix: enhance error message

This commit is contained in:
Moustapha Kodjo Amadou 2025-11-25 16:55:31 +01:00
parent b6eb5f2f3f
commit 485696ea3f

View file

@ -1344,8 +1344,8 @@ mp.register_script_message('call_button_${button.id}_long', button${button.id}lo
} }
if (!context.mounted) return; if (!context.mounted) return;
Navigator.pop(context); Navigator.pop(context);
} catch (_) { } catch (e) {
botToast("Error"); botToast("Error: $e");
Navigator.pop(context); Navigator.pop(context);
} }
}, },