summaryrefslogtreecommitdiffstats
path: root/src/parsers.cc
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2011-04-09 17:51:21 (GMT)
committerNicolas Despres <nicolas.despres@gmail.com>2011-04-26 11:20:08 (GMT)
commitb471f2db6e79abeda1717f3f136bc369eb916958 (patch)
treecf2dd6e35c99125e25e46b78e46dcdfff9053712 /src/parsers.cc
parent5c192cda0788faeed93b3ba03a6830ed43762b24 (diff)
downloadNinja-b471f2db6e79abeda1717f3f136bc369eb916958.zip
Ninja-b471f2db6e79abeda1717f3f136bc369eb916958.tar.gz
Ninja-b471f2db6e79abeda1717f3f136bc369eb916958.tar.bz2
Prefix perror(3) messages with program name.
It make it easier while debugging to know who is reporting the error: Ninja itself or one of the command called by Ninja during the build process or one of the generator which called Ninja.
Diffstat (limited to 'src/parsers.cc')
-rw-r--r--src/parsers.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parsers.cc b/src/parsers.cc
index b9c1190..4aeb73c 100644
--- a/src/parsers.cc
+++ b/src/parsers.cc
@@ -291,7 +291,7 @@ bool ManifestParser::Parse(const string& input, string* err) {
// XXX remove this hack, or make it more principled.
char cwd[1024];
if (!getcwd(cwd, sizeof(cwd))) {
- perror("getcwd");
+ perror("ninja: getcwd");
return 1;
}
value = cwd + value.substr(9);