X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/d0b025468aed28f44caeb5f9e0b1d5571b043cba..bd55d276b3367e2c1792ea868d6e868cc26e2203:/IkiWiki/Setup.pm diff --git a/IkiWiki/Setup.pm b/IkiWiki/Setup.pm index 2b4c76bd0..235e93eaf 100644 --- a/IkiWiki/Setup.pm +++ b/IkiWiki/Setup.pm @@ -10,7 +10,9 @@ package IkiWiki; sub setup () { # {{{ my $setup=possibly_foolish_untaint($config{setup}); delete $config{setup}; - open (IN, $setup) || error("read $setup: $!\n"); + #translators: The first parameter is a filename, and the second + #translators: is a (probably not translated) error message. + open (IN, $setup) || error(sprintf(gettext("cannot read %s: %s"), $setup, $!)); my $code; { local $/=undef; @@ -20,7 +22,7 @@ sub setup () { # {{{ close IN; eval $code; - error($@) if $@; + error("$setup: ".$@) if $@; exit; } #}}}