mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-02-21 01:28:59 +00:00
EMAIL: Fixed bug in error() I introduced yesterday
This commit is contained in:
parent
e1973117c6
commit
d1291220f3
@ -260,21 +260,22 @@ char cgetc_update_status() {
|
||||
void error(uint8_t fatal, const char *fmt, ...) {
|
||||
va_list v;
|
||||
va_start(v, fmt);
|
||||
vprintf(fmt, v);
|
||||
va_end(v);
|
||||
if (fatal) {
|
||||
clrscr2();
|
||||
printf("\n\n%cFATAL ERROR:%c\n\n", INVERSE, NORMAL);
|
||||
vprintf(fmt, v);
|
||||
printf("\n\n\n\n[Press Any Key To Quit]");
|
||||
cgetc();
|
||||
exit(1);
|
||||
} else {
|
||||
goto_prompt_row();
|
||||
putchar(CLRLINE);
|
||||
vprintf(fmt, v);
|
||||
printf(" - [Press Any Key]");
|
||||
cgetc();
|
||||
putchar(CLRLINE);
|
||||
}
|
||||
va_end(v);
|
||||
}
|
||||
#pragma code-name (pop)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user