Browse Source

com_dl.c: exit upon codemodel load error

pre-master-46
h_vogt 13 years ago
parent
commit
9a4bb846a6
  1. 5
      src/frontend/com_dl.c

5
src/frontend/com_dl.c

@ -10,8 +10,11 @@ void com_codemodel(wordlist *wl)
{ {
wordlist *ww; wordlist *ww;
for (ww = wl; ww; ww = ww->wl_next) for (ww = wl; ww; ww = ww->wl_next)
if (load_opus(wl->wl_word))
if (load_opus(wl->wl_word)) {
fprintf(cp_err, "Error: Library %s couldn't be loaded!\n", ww->wl_word); fprintf(cp_err, "Error: Library %s couldn't be loaded!\n", ww->wl_word);
if (ft_stricterror)
controlled_exit(EXIT_BAD);
}
} }
#endif #endif

Loading…
Cancel
Save