Skip to content

Commit 8eb49da

Browse files
committed
Better message.
1 parent 71fd5f2 commit 8eb49da

File tree

1 file changed

+1
-1
lines changed
  • Provider/src/FirebirdSql.Data.FirebirdClient/Client/Managed

1 file changed

+1
-1
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient/Client/Managed/XdrStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ public void WriteBlobBuffer(byte[] buffer)
643643
{
644644
var length = buffer.Length; // 2 for short for buffer length
645645
if (length > short.MaxValue)
646-
throw new IOException();
646+
throw new IOException("Blob buffer too big.");
647647
Write(length + 2);
648648
Write(length + 2); //bizarre but true! three copies of the length
649649
WriteByte((byte)((length >> 0) & 0xff));

0 commit comments

Comments
 (0)