summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake
diff options
context:
space:
mode:
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,