8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 08:03:04 +01:00

fixed diagnostics

This commit is contained in:
alexpeshkoff 2007-04-26 16:15:24 +00:00
parent 36e8b5912f
commit 90b9b09261

View File

@ -234,14 +234,18 @@ void ClumpletWriter::insertBytesLengthCheck(UCHAR tag, const UCHAR* bytes, size_
case IntSpb:
if (length != 4)
{
usage_mistake("attempt to store %d bytes in clumplet, need 4");
string m;
m.printf("attempt to store %d bytes in a clumplet, need 4", length);
usage_mistake(m.c_str());
return;
}
break;
case ByteSpb:
if (length != 1)
{
usage_mistake("attempt to store %d bytes in clumplet, need 1");
string m;
m.printf("attempt to store %d bytes in a clumplet, need 1", length);
usage_mistake(m.c_str());
return;
}
break;