Classify invalid delivery destinations during preflight
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user