Classify invalid delivery destinations during preflight

This commit is contained in:
2026-11-01 19:24:52 +00:00
parent 627d524aa2
commit e5512d50b0
9 changed files with 146 additions and 14 deletions

View File

@@ -50,7 +50,7 @@ func (b *Backend) Preflight(ctx context.Context) error {
}
base, apiRoot, err := b.destinationAPI("preflight repository access")
if err != nil {
return err
return &forge.PreflightFailure{Kind: forge.PreflightInvalidDestination, Err: err}
}
client := b.client.httpClient()
var resolved repositoryResponse