mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
14 lines
443 B
Go
14 lines
443 B
Go
|
package tfdiags
|
||
|
|
||
|
// Sourceless creates and returns a diagnostic with no source location
|
||
|
// information. This is generally used for operational-type errors that are
|
||
|
// caused by or relate to the environment where Terraform is running rather
|
||
|
// than to the provided configuration.
|
||
|
func Sourceless(severity Severity, summary, detail string) Diagnostic {
|
||
|
return diagnosticBase{
|
||
|
severity: severity,
|
||
|
summary: summary,
|
||
|
detail: detail,
|
||
|
}
|
||
|
}
|