Commit cbe7e26c859f8f0e80bd221cf6990a03bcc4cfb9

Authored by Josh Klontz
1 parent 5a252624

added better ut diagnostic

Showing 1 changed file with 1 additions and 1 deletions
openbr/plugins/gallery.cpp
@@ -235,7 +235,7 @@ class utGallery : public BinaryGallery @@ -235,7 +235,7 @@ class utGallery : public BinaryGallery
235 while (bytesNeeded > 0) { 235 while (bytesNeeded > 0) {
236 qint64 bytesRead = gallery.read(dst, bytesNeeded); 236 qint64 bytesRead = gallery.read(dst, bytesNeeded);
237 if (bytesRead <= 0) 237 if (bytesRead <= 0)
238 - qFatal("Unexepected EOF when reading universal template data, needed: %d more bytes.", int(bytesNeeded)); 238 + qFatal("Unexepected EOF while reading universal template data, needed: %d more of: %d bytes.", int(bytesNeeded), int(ut.size));
239 bytesNeeded -= bytesRead; 239 bytesNeeded -= bytesRead;
240 dst += bytesRead; 240 dst += bytesRead;
241 } 241 }