NewFormattedParserError creates a FormattedParserError with the given pre-formatted message string. Use this in external packages (e.g. pkg/workflow) to return an error that isFormattedCompilerError can detect without double-wrapping.
(formatted string)
| 88 | // message string. Use this in external packages (e.g. pkg/workflow) to return an error |
| 89 | // that isFormattedCompilerError can detect without double-wrapping. |
| 90 | func NewFormattedParserError(formatted string) *FormattedParserError { |
| 91 | return &FormattedParserError{formatted: formatted} |
| 92 | } |
| 93 | |
| 94 | // FormatImportError formats an import error as a compilation error with source location |
| 95 | func FormatImportError(err *ImportError, yamlContent string) error { |
no outgoing calls