Expose validation errors through the root API

This commit is contained in:
2026-10-07 18:34:34 +00:00
parent 5848307948
commit 8bac90a9a8
8 changed files with 275 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ func Check(ctx context.Context, request ReleaseRequest) (Candidate, error) {
Output: request.Output,
})
if err != nil {
return Candidate{}, err
return Candidate{}, convertValidationError(err)
}
return Candidate{
RepositoryDir: checked.RepositoryDir,