From: Frank Lichtenheld Date: Sat, 20 Oct 2007 19:43:33 +0000 (+0200) Subject: Packages::Template: Make one error message internal X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=f26361c6f851af80678295e935d48d8f3ee76927;p=deb%2Fpackages.git Packages::Template: Make one error message internal If initialisation of the TT engine fails, near to nothing has a chance to work, so no need to try to convey this to the user and no need to translate this string. --- diff --git a/lib/Packages/Template.pm b/lib/Packages/Template.pm index 8fb22b5..60cabd6 100644 --- a/lib/Packages/Template.pm +++ b/lib/Packages/Template.pm @@ -54,7 +54,7 @@ sub new { VARIABLES => $vars, COMPILE_EXT => '.ttc', %$options, - } ) or fatal_error( sprintf( _g( "Initialization of Template Engine failed: %s" ), $Template::ERROR ) ); + } ) or die sprintf( "Initialization of Template Engine failed: %s", $Template::ERROR ); $self->{format} = $format; $self->{vars} = $vars;