Improved error message for erase failures

This commit is contained in:
Thomas Schmitt 2014-08-14 08:57:01 +00:00
parent 0c9293f9c6
commit 3b5906b30c
2 changed files with 9 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2014.07.31.123105"
#define Cdrskin_timestamP "2014.08.14.085604"

View File

@ -1390,6 +1390,14 @@ enum response scsi_error_msg(struct burn_drive *d, unsigned char *sense,
else
break;
goto return_fail;
case 0x51:
if (*ascq == 0)
sprintf(msg, "Erase failure");
else if (*ascq == 1)
sprintf(msg, "Erase failure. Incomplete erase operation");
else
break;
goto return_fail;
case 0x57:
if (*ascq == 0)
sprintf(msg, "Unable to recover Table-of-Content");