summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2011-03-21 20:43:08 (GMT)
committerNicolas Despres <nicolas.despres@gmail.com>2011-03-21 20:59:11 (GMT)
commit269658384e91c3b36ac871ddb2967d41f18db962 (patch)
tree7f4bffddc204c2c61b7ed6dd4d262d3125d16bee /src/util.h
parent5f0157250c5d304e28959f6e665af6faad903561 (diff)
downloadNinja-269658384e91c3b36ac871ddb2967d41f18db962.zip
Ninja-269658384e91c3b36ac871ddb2967d41f18db962.tar.gz
Ninja-269658384e91c3b36ac871ddb2967d41f18db962.tar.bz2
Prefix error 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/util.h')
-rw-r--r--src/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 188528c..e697b92 100644
--- a/src/util.h
+++ b/src/util.h
@@ -19,3 +19,6 @@ void DumpBacktrace(int skip_frames);
// Log a fatal message, dump a backtrace, and exit.
void Fatal(const char* msg, ...);
+
+// Log an error message.
+void Error(const char* msg, ...);