mirror of
https://github.com/kwsch/NHSE.git
synced 2026-04-25 15:47:17 -05:00
Improve error message for bad encrypted int
This commit is contained in:
parent
ce5706be90
commit
de6190ed79
|
|
@ -55,7 +55,7 @@ public static EncryptedInt32 ReadVerify(byte[] data, int offset)
|
|||
{
|
||||
var val = Read(data, offset);
|
||||
if (val.Checksum != CalculateChecksum(val.OriginalEncrypted))
|
||||
throw new ArgumentException(nameof(offset));
|
||||
throw new ArgumentException($"Failed to verify the {nameof(EncryptedInt32)} at {nameof(offset)}");
|
||||
return val;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user