summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-04-15 10:11:43 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-04-15 10:11:43 +0000
commit30db5b5924b0a854c233aad424107d56562a91e1 (patch)
tree3b4c8d28032c710eb7d1053ba17f4c2a5dfd5880 /perl-install/diskdrake
parent1e87875275f165ac372670110bd8db6de03a4c58 (diff)
downloaddrakx-30db5b5924b0a854c233aad424107d56562a91e1.tar
drakx-30db5b5924b0a854c233aad424107d56562a91e1.tar.gz
drakx-30db5b5924b0a854c233aad424107d56562a91e1.tar.bz2
drakx-30db5b5924b0a854c233aad424107d56562a91e1.tar.xz
drakx-30db5b5924b0a854c233aad424107d56562a91e1.zip
display an error when mount fails during View action
Diffstat (limited to 'perl-install/diskdrake')
-rw-r--r--perl-install/diskdrake/interactive.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index 3f2570949..e8a7a2f06 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -444,7 +444,11 @@ sub part_possible_actions {
sub View {
my ($in, $hd, $part, $all_hds) = @_;
my $handle = any::inspect($part, $::prefix);
- $in->ask_directory({'directory'=>$handle->{dir}});
+ if ($handle) {
+ $in->ask_warn(N("Error"), N("Failed to mount partition"));
+ } else {
+ $in->ask_directory({'directory'=>$handle->{dir}});
+ }
}
#- in case someone use diskdrake only to create partitions,