]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
websetup: Display stderr in browser if ikiwiki setup fails.
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 22 Apr 2009 17:31:56 +0000 (13:31 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 22 Apr 2009 17:31:56 +0000 (13:31 -0400)
IkiWiki/Plugin/websetup.pm
debian/changelog

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)"),
index 3a6e490a47294c98c58d52457112881e60b74507..533a2a16f0af7be62c4df9ffb1049cd12a100470 100644 (file)
@@ -1,6 +1,7 @@
 ikiwiki (3.11) UNRELEASED; urgency=low
 
   * Add python:Depends to control file. Closes: #525086
+  * websetup: Display stderr in browser if ikiwiki setup fails.
 
  -- Joey Hess <joeyh@debian.org>  Tue, 21 Apr 2009 21:41:38 -0400