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
This commit is contained in:
Harrison Healey
2017-05-23 11:06:25 -04:00
committed by GitHub
parent 69f3f2fdce
commit 5c1049054e
23 changed files with 189 additions and 73 deletions

View File

@@ -805,7 +805,7 @@ func TestGetInfoForFilename(t *testing.T) {
}
func readTestFile(name string) ([]byte, error) {
path := utils.FindDir("tests")
path, _ := utils.FindDir("tests")
file, err := os.Open(path + "/" + name)
if err != nil {
return nil, err