diff options
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | src/ninja.cc | 3 | ||||
-rw-r--r-- | src/util.cc | 2 |
3 files changed, 9 insertions, 1 deletions
@@ -15,3 +15,8 @@ TAGS /doc/manual.html /doc/doxygen /gtest-1.6.0 + +# Eclipse project files +.project +.cproject + diff --git a/src/ninja.cc b/src/ninja.cc index e408ce1..7bb5ce3 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -682,6 +682,9 @@ int RunBuild(Builder* builder, int argc, char** argv) { if (!builder->Build(&err)) { printf("ninja: build stopped: %s.\n", err.c_str()); + if (err.find("interrupted by user") != string::npos) { + return 2; + } return 1; } diff --git a/src/util.cc b/src/util.cc index 0feb99d..4b2900f 100644 --- a/src/util.cc +++ b/src/util.cc @@ -155,7 +155,7 @@ bool CanonicalizePath(char* path, size_t* len, string* err) { } if (component_count == kMaxPathComponents) - Fatal("path has too many components"); + Fatal("path has too many components : %s", path); components[component_count] = dst; ++component_count; |