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

Function formatCompilerMessage

pkg/workflow/compiler_error_formatter.go:122–132  ·  view source on GitHub ↗

formatCompilerMessage creates a formatted compiler message string (for warnings printed to stderr) filePath: the file path to include in the message (typically markdownPath or lockFile) msgType: the message type ("error" or "warning") message: the message text

(filePath string, msgType string, message string)

Source from the content-addressed store, hash-verified

120// msgType: the message type ("error" or "warning")
121// message: the message text
122func formatCompilerMessage(filePath string, msgType string, message string) string {
123 return console.FormatError(console.CompilerError{
124 Position: console.ErrorPosition{
125 File: filePath,
126 Line: 0,
127 Column: 0,
128 },
129 Type: msgType,
130 Message: message,
131 })
132}

Calls 1

FormatErrorFunction · 0.92

Tested by 1