]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Setup.pm
web commit by DjoumeSALVETTI
[ikiwiki.git] / IkiWiki / Setup.pm
index 0c8ad9208d50768d8f2eb37473ddc2f5d85187f4..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;
@@ -19,6 +21,7 @@ sub setup () { # {{{
 
        eval $code;
        error($@) if $@;
+
        exit;
 } #}}}