MCPcopy Index your code
hub / github.com/coder/coder / HasError

Method HasError

coderd/dynamicparameters/error.go:59–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func (e *DiagnosticError) HasError() bool {
60 if e.Diagnostics.HasErrors() {
61 return true
62 }
63
64 for _, diags := range e.KeyedDiagnostics {
65 if diags.HasErrors() {
66 return true
67 }
68 }
69 return false
70}
71
72func (e *DiagnosticError) Append(key string, diag *hcl.Diagnostic) {
73 e.Extend(key, hcl.Diagnostics{diag})

Callers 3

CheckTagsFunction · 0.80
ResolveParametersFunction · 0.80
CheckPresetsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected