diff --git a/zcl/diagnostic.go b/zcl/diagnostic.go index 3caba9d..19cddc0 100644 --- a/zcl/diagnostic.go +++ b/zcl/diagnostic.go @@ -45,7 +45,7 @@ type Diagnostics []*Diagnostic // This presents only minimal context about the error, for compatibility // with usual expectations about how errors will present as strings. func (d *Diagnostic) Error() string { - return fmt.Sprintf("%s: %s", d.Subject.Start, d.Summary) + return fmt.Sprintf("%s: %s; %s", d.Subject, d.Summary, d.Detail) } // error implementation, so that sets of diagnostics can be returned via