From cbe7e26c859f8f0e80bd221cf6990a03bcc4cfb9 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Mon, 21 Jul 2014 11:29:11 -0400 Subject: [PATCH] added better ut diagnostic --- openbr/plugins/gallery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbr/plugins/gallery.cpp b/openbr/plugins/gallery.cpp index 0864d46..ac3253e 100644 --- a/openbr/plugins/gallery.cpp +++ b/openbr/plugins/gallery.cpp @@ -235,7 +235,7 @@ class utGallery : public BinaryGallery while (bytesNeeded > 0) { qint64 bytesRead = gallery.read(dst, bytesNeeded); if (bytesRead <= 0) - qFatal("Unexepected EOF when reading universal template data, needed: %d more bytes.", int(bytesNeeded)); + qFatal("Unexepected EOF while reading universal template data, needed: %d more of: %d bytes.", int(bytesNeeded), int(ut.size)); bytesNeeded -= bytesRead; dst += bytesRead; } -- libgit2 0.21.4