Notifying about errors from user menu items?
skejg via mc <[email protected]> Tue, 20 Aug 2024 05:21:36 +0000
| Newsgroups | gmane.comp.gnome.apps.mc.general |
|---|---|
| Message-ID | <[email protected]> |
Hi!
How do you guys handle errors when launching user menu items, for
example?
Like, if you select a menu item, run it, it fails, prints something to
/dev/sderr, then what do you do not to miss it? Always perform <C-o> to
check the output? Notify yourself somehow? Something else?
For now, I just try to construct menu items like this:
git am -3 %d/%f \
|| notify-send -i dialog-error -a "ERROR" "The patch was aborted"
But maybe there's a better way? More *MC-like* way? :)
Thanks!
--
skejg
--
mc mailing list
[email protected]
https://lists.midnight-commander.org/mailman/listinfo/mc