aboutsummaryrefslogtreecommitdiff
path: root/telegabber.go
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-10-22 22:55:43 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-10-22 22:56:11 +0300
commit72c9dac62cb6282841d22d877852bcee26bff9dd (patch)
tree772c3bc19f4461f6ffd427a61476c53b8b75158d /telegabber.go
parent9b4a09677a352d9938e4505bfc2d0c8d304567ac (diff)
Add tests for config package (failing for now)
Diffstat (limited to 'telegabber.go')
-rw-r--r--telegabber.go6
1 files changed, 5 insertions, 1 deletions
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