Refactoring cfg refs and load / save functions (#7749)

* refactoring cfg refs and load / save functions

* improve error output
Этот коммит содержится в:
Chris
2017-10-31 09:39:31 -05:00
коммит произвёл Joram Wilander
родитель b446d0aa0a
Коммит ce2b2be5de
28 изменённых файлов: 250 добавлений и 247 удалений

Просмотреть файл

@@ -9,7 +9,7 @@ import (
)
func TestMailConnection(t *testing.T) {
LoadConfig("config.json")
LoadGlobalConfig("config.json")
if conn, err := connectToSMTPServer(Cfg); err != nil {
t.Log(err)
@@ -32,7 +32,7 @@ func TestMailConnection(t *testing.T) {
}
func TestSendMail(t *testing.T) {
LoadConfig("config.json")
LoadGlobalConfig("config.json")
T = GetUserTranslations("en")
var emailTo string = "test@example.com"