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

Function formatSchemaDetailMessage

pkg/parser/schema_compiler.go:450–456  ·  view source on GitHub ↗
(detailLines []string)

Source from the content-addressed store, hash-verified

448}
449
450func formatSchemaDetailMessage(detailLines []string) string {
451 message := stripDetailLinePrefix(detailLines[0])
452 if len(detailLines) != 1 {
453 message = "Multiple schema validation failures:\n- " + strings.Join(detailLines, "\n- ")
454 }
455 return message
456}
457
458func formatCompilerErrorWithLocation(filePath string, line, column int, message string, contextLines []string) error {
459 compilerErr := console.CompilerError{

Calls 1

stripDetailLinePrefixFunction · 0.85

Tested by

no test coverage detected