From 2305b2597f3658329479645820b985db78da103f Mon Sep 17 00:00:00 2001 From: enahum Date: Mon, 4 Jul 2016 09:30:57 -0400 Subject: PLT-3456 Fix Errors while starting the server (#3445) * PLT-3456 AppErrors that are triggered before translations are loaded crash server or produce bad error messages. * Fixing tests --- mattermost.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mattermost.go') diff --git a/mattermost.go b/mattermost.go index 4cca4c200..bc90d1139 100644 --- a/mattermost.go +++ b/mattermost.go @@ -74,12 +74,12 @@ func doLoadConfig(filename string) (err string) { err = fmt.Sprintf("%v", r) } }() + utils.TranslationsPreInit() utils.LoadConfig(filename) return "" } func main() { - parseCmds() if errstr := doLoadConfig(flagConfigFile); errstr != "" { -- cgit v1.2.3-1-g7c22