Skip to content

Commit 23e62cf

Browse files
committed
Re-add throwing an exception on a non-existing primary client
1 parent 3e0cd11 commit 23e62cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ur/ur_driver.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,8 @@ bool UrDriver::sendScript(const std::string& program)
568568
{
569569
if (primary_client_ == nullptr)
570570
{
571-
return false;
571+
throw std::runtime_error("Sending script to robot requested while there is no primary client initialized. "
572+
"This should not happen.");
572573
}
573574
return primary_client_->sendScript(program);
574575
}

0 commit comments

Comments
 (0)