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

Function appendValidationErrors

pkg/cli/compile_workflow_processor.go:40–48  ·  view source on GitHub ↗
(dst []CompileValidationError, errorType string, err error)

Source from the content-addressed store, hash-verified

38var compileWorkflowProcessorLog = logger.New("cli:compile_workflow_processor")
39
40func appendValidationErrors(dst []CompileValidationError, errorType string, err error) []CompileValidationError {
41 for _, message := range workflow.ExpandErrorMessages(err) {
42 dst = append(dst, CompileValidationError{
43 Type: errorType,
44 Message: message,
45 })
46 }
47 return dst
48}
49
50// compileWorkflowFileResult represents the result of compiling a single workflow file
51type compileWorkflowFileResult struct {

Callers 1

compileWorkflowFileFunction · 0.85

Calls 1

ExpandErrorMessagesFunction · 0.92

Tested by

no test coverage detected