Improved error message
This commit is contained in:
parent
900844d352
commit
11f5de82ce
2 changed files with 4 additions and 2 deletions
|
@ -36,7 +36,8 @@ Xbox360Controller::Xbox360Controller(struct usb_device* dev, bool is_guitar)
|
|||
{
|
||||
if (usb_claim_interface(handle, 0) != 0) // FIXME: bInterfaceNumber shouldn't be hardcoded
|
||||
{
|
||||
throw std::runtime_error("Error couldn't claim the USB interface");
|
||||
throw std::runtime_error("Error couldn't claim the USB interface\n"
|
||||
"Try to run 'rmmod xpad' and start xboxdrv again");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,8 @@ XboxController::XboxController(struct usb_device* dev)
|
|||
{
|
||||
if (usb_claim_interface(handle, 0) != 0) // FIXME: bInterfaceNumber shouldn't be hardcoded
|
||||
{
|
||||
throw std::runtime_error("Error couldn't claim the USB interface");
|
||||
throw std::runtime_error("Error couldn't claim the USB interface\n"
|
||||
"Try to run 'rmmod xpad' and start xboxdrv again");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue