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)
| 120 | // msgType: the message type ("error" or "warning") |
| 121 | // message: the message text |
| 122 | func 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 | } |