[general] error messages no longer depend on a program name

This commit is contained in:
Philippe Tillet
2019-08-23 17:31:50 -07:00
parent f98b0b8e2a
commit c9371c7234

View File

@@ -18,13 +18,9 @@
#define ANSI_COLOR_RESET "\x1b[0m"
extern std::string program;
void Error(const char* format, ...) {
fprintf(stderr,
"%s: " ANSI_COLOR_RED "error: " ANSI_COLOR_RESET,
program.c_str());
ANSI_COLOR_RED "error: " ANSI_COLOR_RESET);
va_list args;
va_start(args, format);