Improved error message for erase failures

This commit is contained in:
Thomas Schmitt 2014-08-14 08:57:01 +00:00
parent 989ba0c13f
commit f25a65c028
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 else
break; break;
goto return_fail; 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: case 0x57:
if (*ascq == 0) if (*ascq == 0)
sprintf(msg, "Unable to recover Table-of-Content"); sprintf(msg, "Unable to recover Table-of-Content");