MCPcopy
hub / github.com/opentofu/opentofu / HasErrors

Method HasErrors

internal/tfdiags/diagnostics.go:123–130  ·  view source on GitHub ↗

HasErrors returns true if any of the diagnostics in the list have a severity of Error.

()

Source from the content-addressed store, hash-verified

121// HasErrors returns true if any of the diagnostics in the list have
122// a severity of Error.
123func (diags Diagnostics) HasErrors() bool {
124 for _, diag := range diags {
125 if diag.Severity() == Error {
126 return true
127 }
128 }
129 return false
130}
131
132// ForRPC returns a version of the receiver that has been simplified so that
133// it is friendly to RPC protocols.

Callers 15

evaluateBodyContentMethod · 0.95
PartialContentMethod · 0.95
BuildConfigFunction · 0.95
GetLocalValueMethod · 0.95
decodeMovedBlockFunction · 0.95
decodeImportBlockFunction · 0.95
resolvedImportAddressFunction · 0.95
decodeRemovedBlockFunction · 0.95
referenceDiagnosticsMethod · 0.95
DecodeBlockMethod · 0.95
decodeStaticVersionMethod · 0.95
decodeProviderConfigRefFunction · 0.95

Calls 1

SeverityMethod · 0.65