Proper message after failed or refused formatting

This commit is contained in:
Thomas Schmitt 2008-12-11 07:24:45 +00:00
parent 5560e20f8a
commit ccd758edc9
2 changed files with 11 additions and 3 deletions

View File

@ -1 +1 @@
#define Xorriso_timestamP "2008.12.10.093424"
#define Xorriso_timestamP "2008.12.11.072427"

View File

@ -4609,8 +4609,16 @@ int Xorriso_format_media(struct XorrisO *xorriso, int flag)
}
Xorriso_process_msg_queues(xorriso,0);
if(burn_drive_wrote_well(drive)) {
sprintf(xorriso->info_text, "Formatting done\n");
Xorriso_info(xorriso,0);
} else {
sprintf(xorriso->info_text,
"libburn indicates failure with formatting.");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
return(-1);
}
if(!(flag & 4)) {
ret= Xorriso_reaquire_outdev(xorriso,