aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/reinstall_command.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-03 22:24:51 +0900
committernsfisis <nsfisis@gmail.com>2026-06-03 22:24:51 +0900
commiteba99f7e5f38d9501b37d9b188b6f324a947dc74 (patch)
tree27c893a33e6176acfe569d6175b13364783a7b95 /crates/shirabe/src/command/reinstall_command.rs
parent27764ef4447a02e5c59bbcc7b4547838aae82d89 (diff)
downloadphp-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/reinstall_command.rs')
0 files changed, 0 insertions, 0 deletions