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 0b263e8c78
commit 9b788a2c32

View File

@ -534,8 +534,12 @@ int Xorriso_assert_jte_handle(struct XorrisO *xorriso, int flag)
if(xorriso->libjte_handle == NULL) {
ret= libjte_new(&(xorriso->libjte_handle), 0);
if(ret <= 0 || xorriso->libjte_handle == NULL)
return(0);
if(ret <= 0 || xorriso->libjte_handle == NULL) {
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);
}