diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-09-23 20:56:45 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-09-23 20:58:59 +0200 |
commit | c3905349b05bdb1adace7fe8dd20e805724962bc (patch) | |
tree | 0a9053a62742ab6470054407b5a3d19acae459e8 /hswg | |
parent | f9e1f9a24422b4c58f61c7247634bc22215bbf34 (diff) | |
download | haven-c3905349b05bdb1adace7fe8dd20e805724962bc.tar.gz haven-c3905349b05bdb1adace7fe8dd20e805724962bc.tar.xz haven-c3905349b05bdb1adace7fe8dd20e805724962bc.zip |
hswg: don't eat libasciidoc rendering errors
An unfortunate consequence of the := operator's behaviour.
Also, update copyright years.
Diffstat (limited to 'hswg')
-rw-r--r-- | hswg/main.go | 6 |
1 files changed, 3 insertions, 3 deletions
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) |