(filePath string, line, column int, message string, contextLines []string)
| 456 | } |
| 457 | |
| 458 | func formatCompilerErrorWithLocation(filePath string, line, column int, message string, contextLines []string) error { |
| 459 | compilerErr := console.CompilerError{ |
| 460 | Position: console.ErrorPosition{ |
| 461 | File: filePath, |
| 462 | Line: line, |
| 463 | Column: column, |
| 464 | }, |
| 465 | Type: "error", |
| 466 | Message: message, |
| 467 | Context: contextLines, |
| 468 | } |
| 469 | formattedErr := console.FormatError(compilerErr) |
| 470 | return &FormattedParserError{formatted: formattedErr} |
| 471 | } |
| 472 | |
| 473 | func buildFallbackSchemaValidationError(errorMsg, schemaJSON, filePath string, ctx frontmatterContextData) error { |
| 474 | message := rewriteAdditionalPropertiesError(errorMsg) |
no test coverage detected