Classify resolved configuration mistakes as input errors

This commit is contained in:
2026-12-02 19:34:13 +00:00
parent adf4dc87e0
commit 21d4eebb5e
7 changed files with 121 additions and 9 deletions

View File

@@ -30,7 +30,7 @@ func operationOutcome(err error) commandkit.Outcome {
func classifyOperationError(err error) commandkit.OutcomeKind {
switch err.(type) {
case *inputError, *config.ArtifactCatalogInputError:
case *inputError, *config.ArtifactCatalogInputError, *config.DomainInputError:
return commandkit.OutcomeUsage
}
switch wrapped := err.(type) {