Skip to content

test(guards): no empty catch blocks in lib/features and lib/shared (#1763) - #1801

Merged
ZhuchkaTriplesix merged 1 commit into
fix/silent-catchesfrom
test/no-silent-catch-guard
Oct 25, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
fix/silent-catchesfrom
test/no-silent-catch-guard

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1763. Stacked on #1800 (base is its branch; GitHub retargets it to dev when #1800 is merged).

A guard test, in the style of the other ones in test/guards: an empty or comment-only catch block in lib/features or lib/shared fails the test; it must call logIgnored, a reporting helper, rethrow or handle the error. After the audit in #1800 eight blocks remain on purpose (parse-and-fall-back in mql_parser, mongo_field_codec, data_grid_value_panel); they are listed with their exact count, so the number has to go down when one is removed.

The unawaited(...) calls mentioned in the issue are not covered here. Not run locally, CI will.

@github-actions github-actions Bot added enhancement New feature or request error-handling Theme parser epic label: error-handling tests Theme parser epic P3 Low priority / Polish & Enhancements labels Oct 25, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit b19d538 into fix/silent-catches Oct 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request error-handling Theme parser epic label: error-handling P3 Low priority / Polish & Enhancements tests Theme parser epic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant