Error prints the error message
()
| 205 | |
| 206 | // Error prints the error message |
| 207 | func (e JSONSchemaValidationError) Error() string { |
| 208 | errStr := e.embeddedErr.Error() |
| 209 | |
| 210 | // This string prefixes all of our error details. Further up the stack of helm error message |
| 211 | // building more detail is provided to users. This is removed. |
| 212 | errStr = strings.TrimPrefix(errStr, "jsonschema validation failed with 'file:///values.schema.json#'\n") |
| 213 | |
| 214 | // The extra new line is needed for when there are sub-charts. |
| 215 | return errStr + "\n" |
| 216 | } |
no outgoing calls