Skip to content

Commit da931a9

Browse files
committed
Improve error message
Signed-off-by: stas.bucik <[email protected]>
1 parent 1142305 commit da931a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/device/DeviceBase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,7 @@ bool DeviceBase::startPipelineImpl(const Pipeline& pipeline) {
16461646
std::tie(success, errorMsg) = pimpl->rpcClient->call(WAIT_FOR_DEVICE_READY_RPC_NAME).as<std::tuple<bool, std::string>>();
16471647

16481648
if (!success) {
1649-
throw std::runtime_error("Device not ready: " + errorMsg);
1649+
throw std::runtime_error("Device " + getDeviceId() + " not ready: " + errorMsg);
16501650
}
16511651

16521652
// Build and start the pipeline
@@ -1655,7 +1655,7 @@ bool DeviceBase::startPipelineImpl(const Pipeline& pipeline) {
16551655
if(success) {
16561656
pimpl->rpcClient->call("startPipeline");
16571657
} else {
1658-
throw std::runtime_error(errorMsg);
1658+
throw std::runtime_error("Device " + getDeviceId() + " error: " + errorMsg);
16591659
return false;
16601660
}
16611661

0 commit comments

Comments
 (0)