Tidying
This commit is contained in:
@@ -49,7 +49,6 @@ namespace Usb
|
|||||||
const int libusbStatusCode = ::libusb_open(this->libusbDevice.get(), &deviceHandle);
|
const int libusbStatusCode = ::libusb_open(this->libusbDevice.get(), &deviceHandle);
|
||||||
|
|
||||||
if (libusbStatusCode < 0) {
|
if (libusbStatusCode < 0) {
|
||||||
// Failed to a device handle from libusb
|
|
||||||
throw DeviceInitializationFailure(
|
throw DeviceInitializationFailure(
|
||||||
"Failed to open USB device - error code " + std::to_string(libusbStatusCode) + " returned."
|
"Failed to open USB device - error code " + std::to_string(libusbStatusCode) + " returned."
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -493,8 +493,8 @@ namespace TargetController
|
|||||||
|
|
||||||
if (!this->target->supportsDebugTool(this->debugTool.get())) {
|
if (!this->target->supportsDebugTool(this->debugTool.get())) {
|
||||||
throw Exceptions::InvalidConfig(
|
throw Exceptions::InvalidConfig(
|
||||||
"Debug tool (\"" + this->debugTool->getName() + "\") not supported by target (\""
|
"Debug tool \"" + this->debugTool->getName() + "\" is not compatible with target \""
|
||||||
+ targetDescriptor.name + "\")."
|
+ targetDescriptor.name + "\"."
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user