Skip to content

Commit

Permalink
Merge pull request hybridgroup#589 from dandua98/master
Browse files Browse the repository at this point in the history
[hybridgroup#574] added error handling for config loading in joystick driver
  • Loading branch information
deadprogram authored Aug 14, 2018
2 parents b8d26f0 + 21088b5 commit 75ed9df
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 75ed9df

Please sign in to comment.