From 2460688c3548387ea0f6ae80ed629aa527cbe0a3 Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Sat, 14 May 2016 18:11:26 +0300 Subject: [PATCH] Report App error to user. --- cli.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli.go b/cli.go index 10cd7054..fe82bdcc 100644 --- a/cli.go +++ b/cli.go @@ -141,7 +141,10 @@ func main() { }, } - app.Run(os.Args) + err = app.Run(os.Args) + if err != nil { + log.Fatal(err) + } } func dnshelp(c *cli.Context) error {