Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#4990 from brianpursley/improve-pan…
Browse files Browse the repository at this point in the history
…ic-error

Improve panic error message to include the parse error.
  • Loading branch information
k8s-ci-robot authored Jan 24, 2023
2 parents 8f75682 + ace8132 commit 96351a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kyaml/openapi/openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ func initSchema() {
if customSchema != nil {
err := parse(customSchema, JsonOrYaml)
if err != nil {
panic("invalid schema file")
panic(fmt.Errorf("invalid schema file: %w", err))
}
} else {
if kubernetesOpenAPIVersion == "" {
Expand Down

0 comments on commit 96351a9

Please sign in to comment.