Update to warning messages if osdi or code model files cannot be loaded
This commit is contained in:
parent
1c0bc1d5c9
commit
2301d2e6aa
|
|
@ -15,6 +15,7 @@ if (wl && wl->wl_word)
|
|||
if (load_opus(wl->wl_word)) {
|
||||
fprintf(stderr, "Error: Library %s couldn't be loaded!\n", wl->wl_word);
|
||||
ft_spiniterror = TRUE;
|
||||
ft_codemodelerror = TRUE;
|
||||
if (ft_stricterror) /* if set in spinit */
|
||||
controlled_exit(EXIT_BAD);
|
||||
}
|
||||
|
|
@ -34,6 +35,7 @@ void com_osdi(wordlist *wl)
|
|||
if (load_osdi(ww->wl_word)) {
|
||||
fprintf(cp_err, "Error: Library %s couldn't be loaded!\n", ww->wl_word);
|
||||
ft_spiniterror = TRUE;
|
||||
ft_osdierror = TRUE;
|
||||
if (ft_stricterror)
|
||||
controlled_exit(EXIT_BAD);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ bool ft_acctprint = FALSE, ft_noacctprint = FALSE, ft_listprint = FALSE;
|
|||
bool ft_nodesprint = FALSE, ft_optsprint = FALSE, ft_noinitprint = FALSE;
|
||||
bool ft_norefprint = FALSE, ft_skywaterpdk = FALSE;
|
||||
bool ft_ngdebug = FALSE, ft_nginfo = FALSE, ft_stricterror = FALSE, ft_spiniterror = FALSE;
|
||||
bool ft_codemodelerror = FALSE, ft_osdierror = FALSE;
|
||||
|
||||
static void setdb(char *str);
|
||||
static struct variable *cp_enqvec_as_var(const char *vec_name,
|
||||
|
|
|
|||
|
|
@ -270,6 +270,8 @@ extern bool ft_ngdebug;
|
|||
extern bool ft_nginfo;
|
||||
extern bool ft_stricterror;
|
||||
extern bool ft_spiniterror;
|
||||
extern bool ft_codemodelerror;
|
||||
extern bool ft_osdierror;
|
||||
extern bool ft_skywaterpdk;
|
||||
|
||||
/* parse.c */
|
||||
|
|
|
|||
Loading…
Reference in New Issue