diff options
author | Evan Martin <martine@danga.com> | 2012-01-05 04:12:22 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-01-05 04:13:35 (GMT) |
commit | eeed724111402fb4746dbd2544c90ab946d03c67 (patch) | |
tree | 160354192a9a234f2373c8b9111f854f0498e0c2 /src/ninja.cc | |
parent | 23ab2829f5f3dd66d95e1d3230f9c4bcb70cfabf (diff) | |
download | Ninja-eeed724111402fb4746dbd2544c90ab946d03c67.zip Ninja-eeed724111402fb4746dbd2544c90ab946d03c67.tar.gz Ninja-eeed724111402fb4746dbd2544c90ab946d03c67.tar.bz2 |
make Lexer::Error not emit trailing newline
Now it's consistent with other errors.
Fixes part of issue #187.
Diffstat (limited to 'src/ninja.cc')
-rw-r--r-- | src/ninja.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ninja.cc b/src/ninja.cc index 64ab454..1d6c204 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -588,10 +588,7 @@ reload: ManifestParser parser(&globals.state, &file_reader); string err; if (!parser.Load(input_file, &err)) { - // The pattern in Ninja for errors is to return a one-line string, - // but parse errors are special in that they are multiline with - // context. Just report it verbatim. - fprintf(stderr, "%s", err.c_str()); + Error("%s", err.c_str()); return 1; } |