Skip to content

Commit 20b203b

Browse files
committed
Improve error message
Signed-off-by: stas.bucik <[email protected]>
1 parent 2005d82 commit 20b203b

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
@@ -1650,7 +1650,7 @@ bool DeviceBase::startPipelineImpl(const Pipeline& pipeline) {
16501650
std::tie(success, errorMsg) = pimpl->rpcClient->call(WAIT_FOR_DEVICE_READY_RPC_NAME).as<std::tuple<bool, std::string>>();
16511651

16521652
if (!success) {
1653-
throw std::runtime_error("Device not ready: " + errorMsg);
1653+
throw std::runtime_error("Device " + getDeviceId() + " not ready: " + errorMsg);
16541654
}
16551655

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

0 commit comments

Comments
 (0)