Skip to content

refactor(core): log the errors that were swallowed silently (#1507) - #1717

Merged
ZhuchkaTriplesix merged 2 commits into
devfrom
refactor/swallowed-errors-logging
Oct 18, 2026
Merged

ZhuchkaTriplesix merged 2 commits into
devfrom
refactor/swallowed-errors-logging

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Refs #1507

logIgnored(where, error) (core/util/log_ignored.dart) writes one debug line for an error the caller goes on from. The 58 bare catch (_) {} in lib/core where a failure can matter later now use it: extension install backup/staging cleanup, SSL certificate paths and temp-key cleanup, connection_environment and MCP access-store JSON, MCP session teardown, extension driver teardown, sandbox process kill, secrets-store legacy cleanup, LocalDb, SSH tunnel manager and the four drivers' close paths.

No behaviour change: every site still continues exactly as before. The ~30 bare catches left are in lib/features (UI value parsing, clipboard) and are best handled case by case, so #1507 stays open for them.

…and driver cleanup paths leave a line in the debug log (#1507)
@github-actions github-actions Bot added error-handling Theme parser epic label: error-handling stability Theme parser epic label: stability core Core library logic and services P2 Medium priority / Parity & Refactoring labels Oct 18, 2026
@github-actions github-actions Bot added this to the 0.5.0 milestone Oct 18, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit b094845 into dev Oct 18, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core library logic and services error-handling Theme parser epic label: error-handling P2 Medium priority / Parity & Refactoring stability Theme parser epic label: stability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant