Added error message in case of failed eject

This commit is contained in:
Thomas Schmitt 2006-09-19 14:10:27 +00:00
parent ba2b5aea0f
commit c343d2f9b8
2 changed files with 9 additions and 4 deletions

View File

@ -3669,10 +3669,15 @@ int Cdrskin_eject(struct CdrskiN *skin, int flag)
if(!skin->do_eject) if(!skin->do_eject)
return(1); return(1);
if(Cdrskin_grab_drive(skin,2)>0) if(Cdrskin_grab_drive(skin,2)>0) {
Cdrskin_release_drive(skin,1); Cdrskin_release_drive(skin,1);
if(skin->verbosity>=Cdrskin_verbose_debuG) if(skin->verbosity>=Cdrskin_verbose_debuG)
ClN(fprintf(stderr,"cdrskin_debug: supposing drive eject to have worked\n")); ClN(fprintf(stderr,
"cdrskin_debug: supposing drive eject to have worked\n"));
} else {
fprintf(stderr,"cdrskin: SORRY : Failed to finally eject tray.\n");
return(0);
}
return(1); return(1);
#else /* Cdrskin_burn_drive_eject_brokeN */ #else /* Cdrskin_burn_drive_eject_brokeN */

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2006.09.19.124540" #define Cdrskin_timestamP "2006.09.19.140716"