diff options
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) |