summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table_sun.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-04-09 09:28:24 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-04-09 09:28:24 +0000
commitf9a642df536f4779ed37f2a090e31987f7e7d7ce (patch)
tree5a06e76f6566e6621939cd8f7f9c50368c64ff48 /perl-install/partition_table_sun.pm
parent21821ebbb28f714e4f12d71eff0357e498fdb111 (diff)
downloaddrakx-f9a642df536f4779ed37f2a090e31987f7e7d7ce.tar
drakx-f9a642df536f4779ed37f2a090e31987f7e7d7ce.tar.gz
drakx-f9a642df536f4779ed37f2a090e31987f7e7d7ce.tar.bz2
drakx-f9a642df536f4779ed37f2a090e31987f7e7d7ce.tar.xz
drakx-f9a642df536f4779ed37f2a090e31987f7e7d7ce.zip
nicer debug "bag magic" error message (thanks to Brian J. Murrell)
Diffstat (limited to 'perl-install/partition_table_sun.pm')
-rw-r--r--perl-install/partition_table_sun.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/partition_table_sun.pm b/perl-install/partition_table_sun.pm
index 75025b503..e0cc05265 100644
--- a/perl-install/partition_table_sun.pm
+++ b/perl-install/partition_table_sun.pm
@@ -82,7 +82,7 @@ sub read($$) {
my %info; @info{@$main_fields} = unpack $main_format, $tmp;
#- check magic number
- $info{magic} == $magic or die "bad magic number";
+ $info{magic} == $magic or die "bad magic number on disk $hd->{device}";
#- check crc, csum contains the crc so result should be 0.
compute_crc($tmp) == 0 or die "bad checksum";