diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-03 22:24:51 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-03 22:24:51 +0900 |
| commit | eba99f7e5f38d9501b37d9b188b6f324a947dc74 (patch) | |
| tree | 27c893a33e6176acfe569d6175b13364783a7b95 /crates/shirabe/src/command/show_command.rs | |
| parent | 27764ef4447a02e5c59bbcc7b4547838aae82d89 (diff) | |
| download | php-shirabe-eba99f7e5f38d9501b37d9b188b6f324a947dc74.tar.gz php-shirabe-eba99f7e5f38d9501b37d9b188b6f324a947dc74.tar.zst php-shirabe-eba99f7e5f38d9501b37d9b188b6f324a947dc74.zip | |
fix(config,loader): wire JsonValidationException catch; drop unportable chain TODOs
JsonConfigSource::manipulate_json now downcasts the validate_schema error
to JsonValidationException (matching PHP's specific catch), restores the
original contents, and surfaces e.get_errors(); other errors propagate.
ArrayLoader's two version-parse catch sites only had TODOs for preserving
the original exception as 'previous'. shirabe_semver raises generic
anyhow errors (not shim exception types), so the existing catch-all is
already faithful to PHP's catch (\UnexpectedValueException), and the flat
shim exception structs intentionally hold no previous field; the wrapped
message already carries the original cause. Remove the stale TODOs.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command/show_command.rs')
0 files changed, 0 insertions, 0 deletions
