Unpack AggregateError inner errors in formatError for better diagnostics#39
Merged
Unpack AggregateError inner errors in formatError for better diagnostics#39
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Collaborator
|
mikhail-zhadanov
added a commit
that referenced
this pull request
Mar 31, 2026
Resolve import conflict: keep both notebook imports and formatError import from the AggregateError fix (PR #39).
Collaborator
|
This PR didn't add anything to changelog so no new release was generated. |
Contributor
Author
Not sure what you're trying to say. What do we need to do? CC @mkcorneli |
Collaborator
|
@juergen-albertsen-exasol , CI is automatically deploying new release to marketplace if
If not done - changes stay only in github code. |
Contributor
Author
|
I created a PR to bump the version: #40 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When connecting to an unreachable Exasol host, the output panel and error messages would show
AggregateErrorwith no useful detail. This is becauseAggregateError(thrown when all WebSocket connection attempts fail) wraps multiple inner errors in an.errorsarray, which the previousformatErrorimplementation ignored.Changes
formatErrornow detectsAggregateErrorand recursively unpacks its inner errors into a readable string, e.g.All connection attempts failed: connect ECONNREFUSED 10.0.0.1:8563; connect ETIMEDOUT 10.0.0.2:8563extension.tsandconnectionPanel.tsreplaced bareString(error)calls withformatError(error), so all error display paths benefit from the same logic