MCPcopy Create free account
hub / github.com/GJDuck/e9patch / error

Method error

src/e9tool/e9frontend.cpp:75–90  ·  view source on GitHub ↗

* Report an error and exit. */

Source from the content-addressed store, hash-verified

73 * Report an error and exit.
74 */
75void NO_RETURN e9tool::error(const char *msg, ...)
76{
77 flushWarnings();
78
79 fprintf(stderr, "%serror%s : ",
80 (option_is_tty? "\33[31m": ""),
81 (option_is_tty? "\33[0m" : ""));
82
83 va_list ap;
84 va_start(ap, msg);
85 vfprintf(stderr, msg, ap);
86 va_end(ap);
87 putc('\n', stderr);
88
89 _Exit(EXIT_FAILURE);
90}
91
92/*
93 * Print a warning message.

Callers

nothing calls this directly

Calls 4

flushWarningsFunction · 0.85
putcFunction · 0.85
fprintfFunction · 0.50
vfprintfFunction · 0.50

Tested by

no test coverage detected