aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/plugin/plugin_manager.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-09 09:25:37 +0900
committernsfisis <nsfisis@gmail.com>2026-08-09 09:25:37 +0900
commitd2a28f8c07b0aa713be338005c6153011d70f24b (patch)
tree8424d8fe75326263bbb963d74611629df829006c /crates/shirabe/src/plugin/plugin_manager.rs
parent6643eb8b7d305818f80c910144b3b29b1af34ba7 (diff)
downloadphp-shirabe-d2a28f8c07b0aa713be338005c6153011d70f24b.tar.gz
php-shirabe-d2a28f8c07b0aa713be338005c6153011d70f24b.tar.zst
php-shirabe-d2a28f8c07b0aa713be338005c6153011d70f24b.zip
feat(symfony-filesystem): append the failure reason to IOExceptions
Symfony wraps its native filesystem calls in box(), which captures the warning text of a failed call into self::$lastError and appends it to the IOException message. The port dropped that text because the shim's mkdir, rmdir, unlink and symlink only return PHP's bare false. Give each of those a Result-returning variant carrying the io::Error, and use it to restore the appended reason. That also makes two conditions portable: doRemove()'s "Permission denied" test, and linkException()'s Windows error code 1314 special case. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/plugin/plugin_manager.rs')
0 files changed, 0 insertions, 0 deletions