Improved error message

This commit is contained in:
Ingo Ruhnke 2008-05-22 00:00:06 +02:00
parent 900844d352
commit 11f5de82ce
2 changed files with 4 additions and 2 deletions

View file

@ -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");
}
}
}

View file

@ -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");
}
}
}