We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06081a7 commit 385b6c7Copy full SHA for 385b6c7
src/main/java/org/truffleruby/core/exception/CoreExceptions.java
@@ -443,7 +443,9 @@ public RubyException indexErrorInvalidArrayIndexException(InvalidArrayIndexExcep
443
@TruffleBoundary
444
public RubyException indexErrorInvalidBufferOffsetException(InvalidBufferOffsetException exception,
445
Node currentNode) {
446
- return indexError("invalid buffer offset " + exception.getByteOffset(), currentNode);
+ return indexError(
447
+ "invalid buffer offset " + exception.getByteOffset() + " for buffer of length " + exception.getLength(),
448
+ currentNode);
449
}
450
451
// KeyError
0 commit comments