(diags hcl.Diagnostics)
| 27 | } |
| 28 | |
| 29 | func presetValidationError(diags hcl.Diagnostics) *DiagnosticError { |
| 30 | return &DiagnosticError{ |
| 31 | Message: "Unable to validate presets", |
| 32 | Diagnostics: diags, |
| 33 | KeyedDiagnostics: make(map[string]hcl.Diagnostics), |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | type DiagnosticError struct { |
| 38 | // Message is the human-readable message that will be returned to the user. |