From 832fab91691a56b373bd1431321d50b964f8380b Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Sat, 12 Jan 2019 16:44:12 -0800 Subject: [PATCH] Fix certain logs --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 4801b9b0..44a345f6 100644 --- a/main.go +++ b/main.go @@ -139,11 +139,11 @@ func getCustomColorscheme(name string) (colorschemes.Colorscheme, error) { filePath := filepath.Join(configDir, name+".json") dat, err := ioutil.ReadFile(filePath) if err != nil { - return colorscheme, fmt.Errorf("colorscheme file not found") + return colorscheme, fmt.Errorf("failed to read colorscheme file: %v", err) } err = json.Unmarshal(dat, &colorscheme) if err != nil { - return colorscheme, fmt.Errorf("could not parse colorscheme file") + return colorscheme, fmt.Errorf("failed to parse colorscheme file: %v", err) } return colorscheme, nil } @@ -459,6 +459,7 @@ func main() { termuiColors() // need to do this before initializing widgets so that they can inherit the colors initWidgets() widgetColors() + help = w.NewHelpMenu() help.Resize(termWidth, termHeight)