handle validation errors correctly

This commit is contained in:
jennybuckley 2019-03-06 15:57:18 -08:00 committed by Jennifer Buckley
parent 4ac0116a5d
commit 51b75460aa

View File

@ -330,7 +330,7 @@ func cleanVerb(verb string, request *http.Request) string {
}
func cleanDryRun(dryRun []string) string {
if err := validation.ValidateDryRun(nil, dryRun); err != nil {
if errs := validation.ValidateDryRun(nil, dryRun); len(errs) > 0 {
return "invalid"
}