From c3905349b05bdb1adace7fe8dd20e805724962bc Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Thu, 23 Sep 2021 20:56:45 +0200 Subject: hswg: don't eat libasciidoc rendering errors An unfortunate consequence of the := operator's behaviour. Also, update copyright years. --- hswg/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hswg') diff --git a/hswg/main.go b/hswg/main.go index 6cec971..e4b557f 100644 --- a/hswg/main.go +++ b/hswg/main.go @@ -78,9 +78,9 @@ func Render(r io.Reader, config configuration.Configuration) ( var doc types.Document if doc, err = parser.ParseDocument(pr, config); err == nil { - problems, err := validator.Validate(&doc) - if err != nil { - fmt.Fprintln(os.Stderr, err) + problems, verr := validator.Validate(&doc) + if verr != nil { + fmt.Fprintln(os.Stderr, verr) } for _, problem := range problems { fmt.Fprintln(os.Stderr, problem.Message) -- cgit v1.2.3-70-g09d2