summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table/raw.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-01-07 13:48:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-01-07 13:48:42 +0000
commit7871e54318f2583c0b2e2e64ffc76ebef3256451 (patch)
tree78118238d4124c3b794145568d3cb74930bceba7 /perl-install/partition_table/raw.pm
parent1e8d4a2ec9a62fb05079994cec2e03ef708cfe7c (diff)
downloaddrakx-backup-do-not-use-7871e54318f2583c0b2e2e64ffc76ebef3256451.tar
drakx-backup-do-not-use-7871e54318f2583c0b2e2e64ffc76ebef3256451.tar.gz
drakx-backup-do-not-use-7871e54318f2583c0b2e2e64ffc76ebef3256451.tar.bz2
drakx-backup-do-not-use-7871e54318f2583c0b2e2e64ffc76ebef3256451.tar.xz
drakx-backup-do-not-use-7871e54318f2583c0b2e2e64ffc76ebef3256451.zip
use internal_error instead of die for better error message (esp. backtrace)
Diffstat (limited to 'perl-install/partition_table/raw.pm')
-rw-r--r--perl-install/partition_table/raw.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/partition_table/raw.pm b/perl-install/partition_table/raw.pm
index ac0c79aac..2237d672a 100644
--- a/perl-install/partition_table/raw.pm
+++ b/perl-install/partition_table/raw.pm
@@ -84,7 +84,7 @@ sub adjustEnd($$) {
my $end2 = round_up($end - ($hd->{geom}{heads} > 2 ? 2 : 1) * $hd->{geom}{sectors}, cylinder_size($hd));
$end2 <= $hd->{geom}{cylinders} * cylinder_size($hd) or die "adjustEnd go beyond end of device geometry ($end2 > $hd->{totalsectors})";
$part->{size} = ($end1 - $part->{start} > cylinder_size($hd) ? $end1 : $end2) - $part->{start};
- $part->{size} > 0 or die "adjustEnd get a too small partition to handle correctly";
+ $part->{size} > 0 or internal_error("adjustEnd get a too small partition to handle correctly");
}
sub get_geometry($) {