From bd0cbc1c8118cc83ec04fb82fc65306670517e21 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Tue, 16 May 2017 07:22:56 -0700 Subject: [PATCH] more detailed default stringification of diagnostics --- zcl/diagnostic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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