MCPcopy Create free account
hub / github.com/github/gh-aw / NewFormattedParserError

Function NewFormattedParserError

pkg/parser/import_error.go:90–92  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls