From d2a1329dc6a5f57675a97b372549d46dc5e11561 Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Sat, 27 Jul 2019 17:50:28 -0700 Subject: [PATCH] Report errors --- cmd/sendxmpp/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/sendxmpp/main.go b/cmd/sendxmpp/main.go index 9974b31..f1773cf 100644 --- a/cmd/sendxmpp/main.go +++ b/cmd/sendxmpp/main.go @@ -6,5 +6,7 @@ import ( func main() { log.AddHook(&hook{}) - cmd.Execute() + if err := cmd.Execute(); err != nil { + log.Fatal(err) + } }