From 7871e54318f2583c0b2e2e64ffc76ebef3256451 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 7 Jan 2003 13:48:42 +0000 Subject: use internal_error instead of die for better error message (esp. backtrace) --- perl-install/partition_table/raw.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/partition_table') 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($) { -- cgit v1.2.1