Skip to content

Commit a70ae36

Browse files
committed
added message to exception
1 parent da81dca commit a70ae36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PolylineAlgorithm/Abstraction/AbstractPolylineEncoder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ static void ValidateBuffer(CoordinateVariance variance, int position, Span<char>
168168
logger
169169
.LogOperationFailedDebug(OperationName);
170170
logger
171-
.LogInternalBufferOverflowWarning(position, buffer.Length, GetRequiredLength(variance));
171+
.LogInternalBufferOverflowWarning(position, buffer.Length, requiredSpace);
172172

173-
throw new InternalBufferOverflowException();
173+
throw new InternalBufferOverflowException($"Internal buffer has size of {buffer.Length}. At position {position} is required additional {GetRequiredLength(variance)} space.");
174174
}
175175
}
176176
}

0 commit comments

Comments
 (0)