From 984c6f75a2494fe910092f070a2a7fd924ff0240 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 17 Jul 2002 12:33:37 +0000 Subject: add function "internal_error" (a specialized "die") --- perl-install/common.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'perl-install/common.pm') diff --git a/perl-install/common.pm b/perl-install/common.pm index a673dce04..d982226e6 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -8,7 +8,7 @@ use vars qw(@ISA @EXPORT $SECTORSIZE); @ISA = qw(Exporter); # no need to export ``_'' -@EXPORT = qw($SECTORSIZE __ translate untranslate formatXiB removeXiBSuffix formatTime setVirtual makedev unmakedev salt); +@EXPORT = qw($SECTORSIZE __ translate untranslate formatXiB removeXiBSuffix formatTime setVirtual makedev unmakedev salt internal_error); # perl_checker: RE-EXPORT-ALL push @EXPORT, @MDK::Common::EXPORT; @@ -180,6 +180,10 @@ sub join_lines { @l, if_($s, $s); } +sub internal_error { + die "INTERNAL ERROR: $_[0]\n" . backtrace(); +} + #-###################################################################################### #- Wonderful perl :( #-###################################################################################### -- cgit v1.2.1