From 9a8954840548a474f66fa5f894c2c2b65ec18a83 Mon Sep 17 00:00:00 2001 From: Jerry Shea Date: Tue, 7 May 2024 12:09:40 +1000 Subject: [PATCH] enrich exception when e.g. resizeRafIfTooSmall fails --- .../openhft/chronicle/bytes/internal/ChunkedMappedBytes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/openhft/chronicle/bytes/internal/ChunkedMappedBytes.java b/src/main/java/net/openhft/chronicle/bytes/internal/ChunkedMappedBytes.java index 272ea887fd6..8ba0f7af2a8 100644 --- a/src/main/java/net/openhft/chronicle/bytes/internal/ChunkedMappedBytes.java +++ b/src/main/java/net/openhft/chronicle/bytes/internal/ChunkedMappedBytes.java @@ -343,7 +343,7 @@ private BufferOverflowException writeBufferOverflowException0(final long offset) assert newBS.reservedBy(this); } catch (@NotNull IOException e) { - throw new IORuntimeException(e); + throw new IORuntimeException(String.format("Failed to acquireByteStore start: 0x%X offset: 0x%X safeLimit: 0x%X", start(), offset, safeLimit()), e); } if (set) { try {