~fnux/pisk

92c8c38a50f2448379d480edb1f705f1712d7df9 — Timothée Floure 2 years ago c720b52
Udisks2 failed actions: display curses error dialog
1 files changed, 1 insertions(+), 3 deletions(-)

M disks.pl
M disks.pl => disks.pl +1 -3
@@ 314,9 314,7 @@ sub handle_udisks2_action {
	my ($cui, $action, $device) = @_;

	my $action_result = eval { $action->(); };
	if ( not $action_result ) {
		# FIXME: Handle error stored in $@
	}
	if ( not $action_result ) { $cui->error($@); }

	return;
}