Skip to content

Commit

Permalink
- Tiny fix to make validation output better.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Ahl committed Jun 4, 2019
1 parent bb824ec commit 3dd284d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/pkg/config/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3dd284d

Please sign in to comment.