summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/hd_gtk.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-10-09 17:38:01 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 21:28:37 +0100
commit72b8c1126664f9c26c031cafa71ddca4fb112de6 (patch)
tree11488359d581aaf69800784b44fe67212f36177b /perl-install/diskdrake/hd_gtk.pm
parent8477be7396561256695beb87e4cbd54f1e392bc9 (diff)
downloaddrakx-72b8c1126664f9c26c031cafa71ddca4fb112de6.tar
drakx-72b8c1126664f9c26c031cafa71ddca4fb112de6.tar.gz
drakx-72b8c1126664f9c26c031cafa71ddca4fb112de6.tar.bz2
drakx-72b8c1126664f9c26c031cafa71ddca4fb112de6.tar.xz
drakx-72b8c1126664f9c26c031cafa71ddca4fb112de6.zip
(try_) display error on console
Diffstat (limited to 'perl-install/diskdrake/hd_gtk.pm')
-rw-r--r--perl-install/diskdrake/hd_gtk.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm
index ce6c81ffb..53c3260f3 100644
--- a/perl-install/diskdrake/hd_gtk.pm
+++ b/perl-install/diskdrake/hd_gtk.pm
@@ -132,6 +132,7 @@ sub try_ {
my $dm_active_before = ($current_entry && $current_entry->{dm_active} && $current_entry->{dm_name});
my $v = eval { $f->($in, @args, $all_hds) };
if (my $err = $@) {
+ warn $err, "\n", backtrace() if $in->isa('interactive::gtk');
$in->ask_warn(N("Error"), formatError($err));
}
my $refresh = 0;