Skip to content

Commit 1886ee6

Browse files
committed
Add 'fwdiag.NewParsingResourceIDErrorDiagnostic'.
1 parent 1f8a719 commit 1886ee6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/errs/fwdiag/diags.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ func DiagnosticString(d diag.Diagnostic) string {
3838
return buf.String()
3939
}
4040

41+
func NewParsingResourceIDErrorDiagnostic(err error) diag.Diagnostic {
42+
return diag.NewErrorDiagnostic(
43+
"Parsing Resource ID",
44+
err.Error(),
45+
)
46+
}
47+
4148
func NewResourceNotFoundWarningDiagnostic(err error) diag.Diagnostic {
4249
return diag.NewWarningDiagnostic(
4350
"AWS resource not found during refresh",

0 commit comments

Comments
 (0)