]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/websetup.pm
websetup: Display stderr in browser if ikiwiki setup fails.
[git.ikiwiki.info.git] / IkiWiki / Plugin / websetup.pm
index 95d044c08a5d46ada18308d6448efebede1732af..92e6875ba08036aaedf53b0ac186de40985bdca4 100644 (file)
@@ -426,8 +426,10 @@ sub showform ($$) {
                                        "-refresh", "-wrappers", "-v");
                        }
 
+                       close STDERR;
+                       open(STDERR, ">&STDOUT");
                        my $ret=system(@command);
-                       print "\n<pre>";
+                       print "\n<\/pre>";
                        if ($ret != 0) {
                                print '<p class="error">'.
                                        sprintf(gettext("<p class=\"error\">Error: %s exited nonzero (%s)"),