Under the hood
New internal helpers clean up and format tool-runtime error lists for reporting
What
Three small internal helpers were added for handling errors from tool execution:
- one normalizes an error-bearing object into a list of individual error entries, falling back to wrapping the whole object as a single entry if needed
- another formats a single error's message, adjusting the reported line and column position by subtracting an offset from the line number
- a third joins all the formatted error messages together with "; " separators
Why
This produces cleaner, more consistent error messages when reporting problems from tool execution, with line numbers adjusted to match what the user actually sees.