Commit 9b0518df authored by Thomas Schmitt's avatar Thomas Schmitt

Proper message after failed or refused formatting

parent 3099f5cd
#define Xorriso_timestamP "2008.12.10.093424"
#define Xorriso_timestamP "2008.12.11.072427"
......@@ -4609,8 +4609,16 @@ int Xorriso_format_media(struct XorrisO *xorriso, int flag)
}
Xorriso_process_msg_queues(xorriso,0);
sprintf(xorriso->info_text, "Formatting done\n");
Xorriso_info(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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment