Skip to content

Commit

Permalink
Remove repetition in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pamolloy committed Jan 27, 2021
1 parent 99db009 commit 60ead66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/xlink/XLinkConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@ void XLinkConnection::initDevice(const DeviceInfo& deviceToInit, XLinkDeviceStat

// If device not found
if(rc != X_LINK_SUCCESS) {
throw std::runtime_error("Failed to find device specified device (" + std::string(deviceToBoot.desc.name)
+ "), error message: " + convertErrorCodeToString(rc));
throw std::runtime_error("Failed to find device (" + std::string(deviceToBoot.desc.name) + "), error message: " + convertErrorCodeToString(rc));
}

if(bootWithPath) {
Expand Down

0 comments on commit 60ead66

Please sign in to comment.