Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add key tracking for all error types #635

Merged
merged 5 commits into from
Jan 10, 2025
Merged

fix: Add key tracking for all error types #635

merged 5 commits into from
Jan 10, 2025

Conversation

epage
Copy link
Contributor

@epage epage commented Jan 10, 2025

We already track key for invalid type errors and this extends it to all other error types.

I created ConfigError::At variant to avoid breaking changes. We can revisit that design when making a breaking change.

Closes #632

epage and others added 5 commits January 10, 2025 09:10
It looks like we lose track of `origin` in a lot of cases when merging
sources which makes actual `origin` tracking meaningless until that is
fixed which looked non-trivial.

Adding this field at least gives us more of an option to do it later.
src/error.rs Fixed Show fixed Hide fixed
src/error.rs Fixed Show fixed Hide fixed
src/error.rs Fixed Show fixed Hide fixed
src/error.rs Fixed Show fixed Hide fixed
src/error.rs Fixed Show fixed Hide fixed
src/error.rs Fixed Show fixed Hide fixed
src/error.rs Fixed Show fixed Hide fixed
src/error.rs Fixed Show fixed Hide fixed
@epage epage force-pushed the key branch 2 times, most recently from 30866fb to 7496699 Compare January 10, 2025 16:23
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12713265800

Details

  • 12 of 13 (92.31%) changed or added relevant lines in 1 file are covered.
  • 7 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.08%) to 64.903%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/error.rs 12 13 92.31%
Files with Coverage Reduction New Missed Lines %
src/error.rs 3 79.27%
src/value.rs 4 37.02%
Totals Coverage Status
Change from base Build 12713095931: 0.08%
Covered Lines: 932
Relevant Lines: 1436

💛 - Coveralls

@epage epage merged commit d9e0197 into rust-cli:main Jan 10, 2025
14 of 15 checks passed
@epage epage deleted the key branch January 10, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants