Fix diagnostic formatting regression caused by adaa91a33eb2cf23b88.
authorNico Weber <thakis@chromium.org>
Fri, 19 Jul 2013 00:51:10 +0000 (17:51 -0700)
committerNico Weber <thakis@chromium.org>
Fri, 19 Jul 2013 00:51:10 +0000 (17:51 -0700)
commita2df2c7d491ca530e16c90d8f9f7012f08c2e0ae
treebd1134823e4f8c5aec2027c0a34c1ca403b8d235
parent1f357a79984d9cae226ea73269ccabb500be2a31
Fix diagnostic formatting regression caused by adaa91a33eb2cf23b88.

Ninja regressed to include a location for every file on the include stack for
nested diagnostics, i.e. it would print:

  input:1: include.ninja:1: expected path

Fix this so that it prints only the current file location, like it used to:

  include.ninja:1: expected path

Also add a test for this.
src/manifest_parser.cc
src/manifest_parser.h
src/manifest_parser_test.cc