Reacting with FATAL event on failure to create libjte_handle

This commit is contained in:
Thomas Schmitt 2010-10-03 17:13:25 +00:00
parent ddad93e911
commit 0666363d6b

View File

@ -534,8 +534,12 @@ int Xorriso_assert_jte_handle(struct XorrisO *xorriso, int flag)
if(xorriso->libjte_handle == NULL) { if(xorriso->libjte_handle == NULL) {
ret= libjte_new(&(xorriso->libjte_handle), 0); ret= libjte_new(&(xorriso->libjte_handle), 0);
if(ret <= 0 || xorriso->libjte_handle == NULL) if(ret <= 0 || xorriso->libjte_handle == NULL) {
return(0); sprintf(xorriso->info_text,
"-jigdo: Failed to create libjte environment object");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FATAL", 0);
return(-1);
}
} }
return(1); return(1);
} }