[general] error messages no longer depend on a program name
This commit is contained in:
@@ -18,13 +18,9 @@
|
|||||||
#define ANSI_COLOR_RESET "\x1b[0m"
|
#define ANSI_COLOR_RESET "\x1b[0m"
|
||||||
|
|
||||||
|
|
||||||
extern std::string program;
|
|
||||||
|
|
||||||
|
|
||||||
void Error(const char* format, ...) {
|
void Error(const char* format, ...) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"%s: " ANSI_COLOR_RED "error: " ANSI_COLOR_RESET,
|
ANSI_COLOR_RED "error: " ANSI_COLOR_RESET);
|
||||||
program.c_str());
|
|
||||||
|
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, format);
|
va_start(args, format);
|
||||||
|
Reference in New Issue
Block a user