Files
0xJacky 32ba740bc1 refactor(host): report setup handler failures through scoped Cosy errors
Replace the raw errors.New private key path failures, the duplicated
algorithm mismatch gin.H response and the ad hoc 500 for a failed key
removal with scoped errors (ErrPrivateKeyPathRequired,
ErrPrivateKeyPathNotAbsolute, ErrKeyfileDelete in host_setup;
ErrHostKeyAlgorithmMismatch in host_ssh). Validation failures keep their
400 status via abortBadRequest, the remove failure goes through
cosy.ErrHandler.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-02 21:16:00 +08:00
..