com_dl.c: exit upon codemodel load error

This commit is contained in:
h_vogt 2012-12-30 15:32:44 +01:00
parent 0ecd633334
commit 9a4bb846a6
1 changed files with 4 additions and 1 deletions

View File

@ -10,8 +10,11 @@ void com_codemodel(wordlist *wl)
{
wordlist *ww;
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);
if (ft_stricterror)
controlled_exit(EXIT_BAD);
}
}
#endif