From 3dd284da1ebf25e28261e6de7d9d810b2af5e6ac Mon Sep 17 00:00:00 2001 From: Kristoffer Ahl Date: Tue, 4 Jun 2019 19:34:45 +0200 Subject: [PATCH] - Tiny fix to make validation output better. --- internal/pkg/config/validation.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/pkg/config/validation.go b/internal/pkg/config/validation.go index 3ee398c..340cecd 100644 --- a/internal/pkg/config/validation.go +++ b/internal/pkg/config/validation.go @@ -19,7 +19,8 @@ func validateManifestYaml(schema string, r io.Reader) error { } if err = s.Validate(r); err != nil { - return fmt.Errorf("invalid manifest file,\n%s", err.Error()) + m := strings.Replace(err.Error(), "bindata://schemas/manifest.json#", "schemas/manifest.json", 1) + return fmt.Errorf("invalid manifest file\n\n%s", m) } return nil