Explorar o código

HPCC-8839 Include sizes in key-row size error message

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday %!s(int64=12) %!d(string=hai) anos
pai
achega
03057dfb6e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      system/jhtree/ctfile.cpp

+ 1 - 1
system/jhtree/ctfile.cpp

@@ -365,7 +365,7 @@ bool CWriteNode::add(offset_t pos, const void *indata, size32_t insize, unsigned
     }
 
     if (insize>keyLen)
-        throw MakeStringException(0, "key+payload exceeds max length");
+        throw MakeStringException(0, "key+payload (%u) exceeds max length (%u)", insize, keyLen);
     memcpy(lastKeyValue, indata, insize);
     lastSequence = sequence;
     hdr.numKeys++;