{"version":"2.1.271","anchor":"new-helper-deduplicatesnormalizes-tool-runtime-error-arrays","canonical_anchor":"new-helper-deduplicatesnormalizes-tool-runtime-error-arrays","heading":"New helper deduplicates\/normalizes tool-runtime error arrays for reporting","tier":"internal","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271\/e\/new-helper-deduplicatesnormalizes-tool-runtime-error-arrays","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271","markdown":"### New helper deduplicates\/normalizes tool-runtime error arrays for reporting\n\nNew internal helpers clean up and format tool-runtime error lists for reporting\n\n**What**\n\nThree small internal helpers were added for handling errors from tool execution:\n\n- 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\n\n- another formats a single error's message, adjusting the reported line and column position by subtracting an offset from the line number\n\n- a third joins all the formatted error messages together with \"; \" separators\n\n**Why**\n\nThis produces cleaner, more consistent error messages when reporting problems from tool execution, with line numbers adjusted to match what the user actually sees.\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}