Closed a1ien closed 1 year ago
Merging #565 (0183065) into main (aab760f) will decrease coverage by
0.1%
. The diff coverage is0.0%
.
@@ Coverage Diff @@
## main #565 +/- ##
=======================================
- Coverage 95.7% 95.6% -0.1%
=======================================
Files 78 78
Lines 8703 8711 +8
=======================================
- Hits 8330 8329 -1
- Misses 373 382 +9
Impacted Files | Coverage Δ | |
---|---|---|
time/src/error/component_range.rs | 79.5% <0.0%> (-20.5%) |
:arrow_down: |
... and 1 file with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
This is deliberately private, as I do not want to guarantee the type being stored.
Suggest then how to customize the error message. How to get what range is incorrect? For example, in the current display implementation, you print the range as 1..=30, but this does not look good for the user interface.
Currently, you cannot obtain the range of validity, at least easily. I suppose you could work from the component name and whether it's conditional to determine the name, but that's about it.
This methods is useful if you want to implement custom error printing.