CDImage: Log errno when fopen() fails
This commit is contained in:
parent
26e0177caa
commit
df66d86b27
2 changed files with 6 additions and 4 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#include "cd_subchannel_replacement.h"
|
||||
#include "file_system.h"
|
||||
#include "log.h"
|
||||
#include <cerrno>
|
||||
Log_SetChannel(CDImageBin);
|
||||
|
||||
class CDImageBin : public CDImage
|
||||
|
|
@ -49,7 +50,7 @@ bool CDImageBin::Open(const char* filename)
|
|||
m_fp = FileSystem::OpenCFile(filename, "rb");
|
||||
if (!m_fp)
|
||||
{
|
||||
Log_ErrorPrintf("Failed to open binfile '%s'", filename);
|
||||
Log_ErrorPrintf("Failed to open binfile '%s': errno %d", filename, errno);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue