summaryrefslogtreecommitdiffstats
path: root/draklive-install
diff options
context:
space:
mode:
Diffstat (limited to 'draklive-install')
-rwxr-xr-xdraklive-install10
1 files changed, 8 insertions, 2 deletions
diff --git a/draklive-install b/draklive-install
index 53d89c4..dcdbe8b 100755
--- a/draklive-install
+++ b/draklive-install
@@ -113,10 +113,16 @@ sub umount_first_pass() {
sub init_hds {
my ($in, $all_hds, $fstab) = @_;
- my $_wait = $in->wait_message('', N("Please wait"));
+ my $wait = $in->wait_message('', N("Please wait"));
umount_first_pass();
- fs::any::get_hds($all_hds, $fstab, [], {}, 'skip_mtab', $in);
+ eval { fs::any::get_hds($all_hds, $fstab, [], {}, 'skip_mtab', $in) };
+ my $err = $@;
umount_all($fstab);
+ if ($err) {
+ undef $wait;
+ $in->ask_warn(N("Error"), [ formatError($err) ]);
+ $in->exit(1);
+ }
}
sub ask_partitions_loop {