diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-04-22 13:31:56 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-04-22 13:31:56 -0400 |
commit | 4fbe1c3d447d875562b6c6a43ac702101eae3953 (patch) | |
tree | b43defc22cd8bdc3541a86598f73ffa17ee993a3 /IkiWiki/Plugin/websetup.pm | |
parent | e88ef0362cd01970937ed5a79fa0c5189640857a (diff) | |
download | ikiwiki-4fbe1c3d447d875562b6c6a43ac702101eae3953.tar ikiwiki-4fbe1c3d447d875562b6c6a43ac702101eae3953.tar.gz |
websetup: Display stderr in browser if ikiwiki setup fails.
Diffstat (limited to 'IkiWiki/Plugin/websetup.pm')
-rw-r--r-- | IkiWiki/Plugin/websetup.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/websetup.pm b/IkiWiki/Plugin/websetup.pm index 95d044c08..92e6875ba 100644 --- a/IkiWiki/Plugin/websetup.pm +++ b/IkiWiki/Plugin/websetup.pm @@ -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)"), |