martine/ninja — Issue #187: ninja errors don't have trailing newlines in some cases
Author: nico
Created: 2012-01-05 00:05:25+00:00
State: open

1. For duplicate rules:

thakis-macbookpro:foo thakis$ cat build.ninja
rule cc
command = foo
rule cc
thakis-macbookpro:foo thakis$ ../ninja
duplicate rule 'cc'thakis-macbookpro:foo thakis$

2. If there's no build.ninja file (poor error message, too.):

thakis-macbookpro:foo thakis$ rm build.ninja
thakis-macbookpro:foo thakis$ ../ninja
No such file or directorythakis-macbookpro:foo thakis$

It's a bit annoying to fix