Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
forgot to change the expected number of bytes in the exception message
  • Loading branch information
Sparronator9999 committed Dec 8, 2024
1 parent 858cf45 commit 94f9501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YAMDCC.IPC/IO/PipeStreamReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private T ReadObject(int len)
int bytesRead = BaseStream.Read(data, 0, data.Length);
return bytesRead == len
? MessagePackSerializer.Deserialize<T>(data, _options)
: throw new IOException($"Expected {SIZE_INT} bytes, but read {bytesRead}.");
: throw new IOException($"Expected {len} bytes, but read {bytesRead}.");

}
}
Expand Down

0 comments on commit 94f9501

Please sign in to comment.