martine/ninja — pull request #467 by ppuryear (2012-12-10 23:49:55+00:00)
Title: browse: Read ninja's error text from stderr.

Commit ca1f213 changed ninja -t query so that it sends its "unknown target" error text to stderr. However, browse.py expects everything to come in through stdout, so if you type `ninja -t query thistargetdoesntexist`, you get a blank web page and the error prints to the console.

This commit restores the original behavior by having browse.py read the error from stderr and redirect it to the web page.