gsdx replayer: improve error message when file is corrupted

This commit is contained in:
Gregory Hainaut 2016-09-18 16:52:35 +02:00
parent ac1b3845b2
commit 2a60264e40
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ void GSDumpRaw::Read(void* ptr, size_t size) {
} else {
size_t ret = fread(ptr, 1, size, m_fp);
if (ret != size) {
fprintf(stderr, "GSDumpRaw:: Read error\n");
fprintf(stderr, "GSDumpRaw:: Read error (%d/%d)\n", ret, size);
throw "BAD"; // Just exit the program
}
}