Skip to content

Commit

Permalink
[hybridgroup#574] added error handling for config loading in joystick…
Browse files Browse the repository at this point in the history
… driver
  • Loading branch information
dandua98 committed Aug 5, 2018
1 parent a4d5479 commit 21088b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion platforms/joystick/joystick_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ func (j *Driver) Start() (err error) {
case "xbox360RockBandDrums":
j.config = xbox360RockBandDrumsConfig
default:
j.loadFile()
err := j.loadFile()
if err != nil {
return err
}
}

for _, value := range j.config.Buttons {
Expand Down

0 comments on commit 21088b5

Please sign in to comment.