Skip to content

Commit ab4a15b

Browse files
committed
Consistent exception messages between Java and .NET
1 parent cdf9427 commit ab4a15b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MetadataExtractor/IO/SequentialStreamReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public override void Skip(long n)
5656
throw new ArgumentException("n must be zero or greater.");
5757

5858
if (_stream.Position + n > _stream.Length)
59-
throw new IOException("Unable to skip past of end of file");
59+
throw new IOException($"Unable to skip. Requested {n} bytes but only {_stream.Length - _stream.Position} remained.");
6060

6161
_stream.Seek(n, SeekOrigin.Current);
6262
}

0 commit comments

Comments
 (0)