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

Function NewConfigurationError

pkg/workflow/workflow_errors.go:188–199  ·  view source on GitHub ↗

NewConfigurationError creates a new configuration error with context

(configKey, value, reason, suggestion string)

Source from the content-addressed store, hash-verified

186
187// NewConfigurationError creates a new configuration error with context
188func NewConfigurationError(configKey, value, reason, suggestion string) *ConfigurationError {
189 if errorHelpersLog.Enabled() {
190 errorHelpersLog.Printf("Creating configuration error: configKey=%s, reason=%s", configKey, reason)
191 }
192 return &ConfigurationError{
193 ConfigKey: configKey,
194 Value: value,
195 Reason: reason,
196 Suggestion: suggestion,
197 Timestamp: time.Now(),
198 }
199}
200
201var errorAggregationLog = logger.New("workflow:error_aggregation")
202

Callers 2

TestConfigurationErrorFunction · 0.85
validateSandboxConfigFunction · 0.85

Calls 2

EnabledMethod · 0.45
PrintfMethod · 0.45

Tested by 1

TestConfigurationErrorFunction · 0.68