build error message tid

Don't call impossible() if there are no window types  - we just core after
being told to #quit when it's too early to do so.
This commit is contained in:
keni
2008-03-18 23:11:28 +00:00
parent 2d1eb28e67
commit 403ace96e3

View File

@@ -111,7 +111,10 @@ const char *s;
if (!windowprocs.win_raw_print)
windowprocs.win_raw_print = def_raw_print;
if(!winchoices[0].procs) impossible("no window types?");
if(!winchoices[0].procs){
raw_printf("No window types?");
exit(EXIT_FAILURE);
}
if(!winchoices[1].procs){
raw_printf("Window type %s not recognized. The only choice is: %s.",
s, winchoices[0].procs->name);