diff options
Diffstat (limited to 'src/util.cc')
-rw-r--r-- | src/util.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc index 1968702..a2e080f 100644 --- a/src/util.cc +++ b/src/util.cc @@ -20,10 +20,19 @@ void Fatal(const char* msg, ...) { va_list ap; - fprintf(stderr, "FATAL: "); + fprintf(stderr, "ninja: FATAL: "); va_start(ap, msg); vfprintf(stderr, msg, ap); va_end(ap); fprintf(stderr, "\n"); exit(1); } + +void Error(const char* msg, ...) { + va_list ap; + fprintf(stderr, "ninja: error: "); + va_start(ap, msg); + vfprintf(stderr, msg, ap); + va_end(ap); + fprintf(stderr, "\n"); +} |