From 5c1049054eace710abd3418bbad141fbb7dd5d7f Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 23 May 2017 11:06:25 -0400 Subject: PLT-6471 Properly panic when translations can't be loaded (#6414) * PLT-6471 Properly panic when translations can't be loaded * Print usage messages when errors occur during CLI initialization * Reverted behaviour of FindDir and added second return value to it * Fixed merge conflict --- app/auto_posts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/auto_posts.go') diff --git a/app/auto_posts.go b/app/auto_posts.go index 07d260846..6a2a15908 100644 --- a/app/auto_posts.go +++ b/app/auto_posts.go @@ -41,7 +41,7 @@ func NewAutoPostCreator(client *model.Client, channelid string) *AutoPostCreator func (cfg *AutoPostCreator) UploadTestFile() ([]string, bool) { filename := cfg.ImageFilenames[utils.RandIntFromRange(utils.Range{Begin: 0, End: len(cfg.ImageFilenames) - 1})] - path := utils.FindDir("web/static/images") + path, _ := utils.FindDir("web/static/images") file, err := os.Open(path + "/" + filename) defer file.Close() -- cgit v1.2.3-1-g7c22