Skip to content

Commit 6cf7c06

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

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
@@ -1712,15 +1712,15 @@ bool DeviceBase::startPipelineImpl(const Pipeline& pipeline) {
17121712
std::tie(success, errorMsg) = pimpl->rpcCall(std::chrono::seconds(60), "waitForDeviceReady").as<std::tuple<bool, std::string>>();
17131713

17141714
if (!success) {
1715-
throw std::runtime_error("Device not ready: " + errorMsg);
1715+
throw std::runtime_error("Device " + getDeviceId() + " not ready: " + errorMsg);
17161716
}
17171717

17181718
// Build and start the pipeline
17191719
std::tie(success, errorMsg) = pimpl->rpcCall("buildPipeline").as<std::tuple<bool, std::string>>();
17201720
if(success) {
17211721
pimpl->rpcCall("startPipeline");
17221722
} else {
1723-
throw std::runtime_error(errorMsg);
1723+
throw std::runtime_error("Device " + getDeviceId() + " error: " + errorMsg);
17241724
return false;
17251725
}
17261726

0 commit comments

Comments
 (0)