* Corrected a bum regexp in openid munging.
[ikiwiki.git] / IkiWiki / Setup.pm
index 40ed788624a16ba5f38413e74be6802f7fb1ad5f..560bc798bf4cd03da85e16eeb97aeed4d72125a5 100644 (file)
@@ -2,13 +2,15 @@
 
 use warnings;
 use strict;
+use IkiWiki;
+use open qw{:utf8 :std};
 
 package IkiWiki;
 
 sub setup () { # {{{
        my $setup=possibly_foolish_untaint($config{setup});
        delete $config{setup};
-       open (IN, $setup) || error("read $setup: $!\n");
+       open (IN, $setup) || error(sprintf(gettext("cannot read %s: %s"), $setup, $!));
        my $code;
        {
                local $/=undef;