Skip to content

Commit

Permalink
pad.c: improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdope committed Jul 6, 2024
1 parent 1d93fa1 commit eb0f25b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pad.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,14 @@ static int pusb_pad_update(
log_info("Regenerating new pads...\n");
if (!(f_device = pusb_pad_open_device(opts, volume, user, "w+")))
{
log_error("Unable to update pads.\n");
log_error("Unable to update device pads.\n");
return 0;
}
pusb_pad_protect(user, fileno(f_device));

if (!(f_system = pusb_pad_open_system(opts, user, "w+")))
{
log_error("Unable to update pads.\n");
log_error("Unable to update system pads.\n");
fclose(f_device);
return 0;
}
Expand Down

0 comments on commit eb0f25b

Please sign in to comment.