Skip to content

Commit

Permalink
concretize error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Tereius committed Sep 13, 2022
1 parent 85c0715 commit bdb3cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/noxon/jsonPresetsModel.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func NewJsonPresetsModel() JsonPresetsModel {
}

if dat, err := os.ReadFile("presets.json"); err != nil {
log.Warnf("Could not read presets file - will create one: %s", err.Error())
log.Warnf("Could not read presets file - will create one if needed: %s", err.Error())
} else if len(dat) > 0 {
if err := json.Unmarshal(dat, &model.presets); err != nil {
log.Errorf("Could not unmarshal presets: %s", err.Error())
Expand Down

0 comments on commit bdb3cd9

Please sign in to comment.