fix: remove comparison from old error message to new

Signed-off-by: Jesse Simpson <jesse.simpson36@gmail.com>
pull/13586/head
Jesse Simpson 9 months ago
parent c481470985
commit d8bec4e30f
No known key found for this signature in database
GPG Key ID: 237495C89AB0AAFC

@ -437,8 +437,12 @@ func cleanupExecError(filename string, err error) error {
}
finalErrorString = finalErrorString + fileLocation.String()
}
if strings.TrimSpace(finalErrorString) == "" {
// Fallback to original error message if nothing was extracted
return fmt.Errorf("%s", err.Error())
}
return fmt.Errorf("NEW ERROR FORMAT: \n%s\n\n\nORIGINAL ERROR:\n%s", finalErrorString, err.Error())
return fmt.Errorf("%s", finalErrorString)
}
func sortTemplates(tpls map[string]renderable) []string {

Loading…
Cancel
Save