summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-01-22 21:26:12 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-01-22 21:26:12 +0000
commit8b9f10b6f500bff41b2d7e47716a82899d8dc95d (patch)
tree208274038b6c1db4872080bc08b62920b7122451 /perl-install/standalone
parentcc57ba20ce1b616971ece004f6dd4c1301ce5247 (diff)
downloaddrakx-backup-do-not-use-8b9f10b6f500bff41b2d7e47716a82899d8dc95d.tar
drakx-backup-do-not-use-8b9f10b6f500bff41b2d7e47716a82899d8dc95d.tar.gz
drakx-backup-do-not-use-8b9f10b6f500bff41b2d7e47716a82899d8dc95d.tar.bz2
drakx-backup-do-not-use-8b9f10b6f500bff41b2d7e47716a82899d8dc95d.tar.xz
drakx-backup-do-not-use-8b9f10b6f500bff41b2d7e47716a82899d8dc95d.zip
yet again better error reporting
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/diskdrake10
1 files changed, 5 insertions, 5 deletions
diff --git a/perl-install/standalone/diskdrake b/perl-install/standalone/diskdrake
index 414a261fa..8786887d2 100755
--- a/perl-install/standalone/diskdrake
+++ b/perl-install/standalone/diskdrake
@@ -67,13 +67,13 @@ my ($all_hds) =
catch_cdie { fsedit::hds([ detect_devices::hds() ], {}) }
sub {
my $err = formatError($@);
- if ($err =~ /overlapping/) {
- $in->ask_warn('', $err);
- 1;
- } else {
- !$in->ask_okcancel(_("Error"),
+ if ($err =~ s/ask_before_blanking://) {
+ $in->ask_okcancel(_("Error"),
[_("I can't read your partition table, it's too corrupted for me :(
I'll try to go on blanking bad partitions"), $err]);
+ } else {
+ $in->ask_warn('', $err);
+ 1;
}
};