From 2a60264e40c1a91892bd9982ddb9f3a668d5b91b Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sun, 18 Sep 2016 16:52:35 +0200 Subject: [PATCH] gsdx replayer: improve error message when file is corrupted --- plugins/GSdx/GSLzma.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GSdx/GSLzma.cpp b/plugins/GSdx/GSLzma.cpp index d18791ea04..8e6793d09f 100644 --- a/plugins/GSdx/GSLzma.cpp +++ b/plugins/GSdx/GSLzma.cpp @@ -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 } }