From 3ecee614ca777b4dd40f29319e14904867e7e527 Mon Sep 17 00:00:00 2001 From: Matthieu Grieger Date: Fri, 20 Mar 2015 21:21:00 -0700 Subject: [PATCH] Fixed typo in mumbledj.gcfg --- mumbledj.gcfg | 2 +- parseconfig.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mumbledj.gcfg b/mumbledj.gcfg index da57d4b..db67c05 100644 --- a/mumbledj.gcfg +++ b/mumbledj.gcfg @@ -1,6 +1,6 @@ # MumbleDJ # By Matthieu Grieger -# config.toml +# config.gcfg # Copyright (c) 2014 Matthieu Grieger (MIT License) [General] diff --git a/parseconfig.go b/parseconfig.go index 18de314..a12fc57 100644 --- a/parseconfig.go +++ b/parseconfig.go @@ -70,13 +70,14 @@ type DjConfig struct { AdminCacheSize bool AdminKill bool } -} +} // Loads mumbledj.gcfg into dj.conf, a variable of type DjConfig. func loadConfiguration() error { if gcfg.ReadFileInto(&dj.conf, fmt.Sprintf("%s/.mumbledj/config/mumbledj.gcfg", dj.homeDir)) == nil { return nil } else { + fmt.Printf("%s/.mumbledj/config/mumbledj.gcfg\n", dj.homeDir) return errors.New("Configuration load failed.") } }