github.com/terramate-io/tf@v0.0.0-20230830114523-fce866b4dfcd/tfdiags/sourceless.go (about) 1 // Copyright (c) HashiCorp, Inc. 2 // SPDX-License-Identifier: MPL-2.0 3 4 package tfdiags 5 6 // Sourceless creates and returns a diagnostic with no source location 7 // information. This is generally used for operational-type errors that are 8 // caused by or relate to the environment where Terraform is running rather 9 // than to the provided configuration. 10 func Sourceless(severity Severity, summary, detail string) Diagnostic { 11 return diagnosticBase{ 12 severity: severity, 13 summary: summary, 14 detail: detail, 15 } 16 }