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

Method Error

coderd/dynamicparameters/error.go:49–57  ·  view source on GitHub ↗

Error is a pretty bad format for these errors. Try to avoid using this.

()

Source from the content-addressed store, hash-verified

47
48// Error is a pretty bad format for these errors. Try to avoid using this.
49func (e *DiagnosticError) Error() string {
50 var diags hcl.Diagnostics
51 diags = diags.Extend(e.Diagnostics)
52 for _, d := range e.KeyedDiagnostics {
53 diags = diags.Extend(d)
54 }
55
56 return diags.Error()
57}
58
59func (e *DiagnosticError) HasError() bool {
60 if e.Diagnostics.HasErrors() {

Callers 4

TestResolveParametersFunction · 0.45
ResolveParametersFunction · 0.45
TemplateVersionParameterFunction · 0.45

Calls 1

ExtendMethod · 0.80

Tested by 2

TestResolveParametersFunction · 0.36