From 72c9dac62cb6282841d22d877852bcee26bff9dd Mon Sep 17 00:00:00 2001 From: bodqhrohro Date: Tue, 22 Oct 2019 22:55:43 +0300 Subject: Add tests for config package (failing for now) --- telegabber.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'telegabber.go') diff --git a/telegabber.go b/telegabber.go index dd1e187..6c17c91 100644 --- a/telegabber.go +++ b/telegabber.go @@ -10,7 +10,11 @@ import ( const CONFIG_PATH string = "config.yml" func main() { - config := config.ReadConfig(CONFIG_PATH) + config, err := config.ReadConfig(CONFIG_PATH) + if err != nil { + log.Fatal(err) + } + cm := xmpp.NewComponent(config.Xmpp) // reconnect automatically -- cgit v1.2.3