Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
Fix certain logs
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Jan 13, 2019
1 parent 1661917 commit 832fab9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 832fab9

Please sign in to comment.