github.com/kanishk98/terraform@v1.3.0-dev.0.20220917174235-661ca8088a6a/internal/tfdiags/sourceless.go (about) 1 package tfdiags 2 3 // Sourceless creates and returns a diagnostic with no source location 4 // information. This is generally used for operational-type errors that are 5 // caused by or relate to the environment where Terraform is running rather 6 // than to the provided configuration. 7 func Sourceless(severity Severity, summary, detail string) Diagnostic { 8 return diagnosticBase{ 9 severity: severity, 10 summary: summary, 11 detail: detail, 12 } 13 }