We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa9ecc2 commit 1ce9215Copy full SHA for 1ce9215
ur_robot_driver/src/rtde/rtde_client.cpp
@@ -323,6 +323,13 @@ std::vector<std::string> RTDEClient::readRecipe(const std::string& recipe_file)
323
{
324
std::vector<std::string> recipe;
325
std::ifstream file(recipe_file);
326
+ if (file.fail())
327
+ {
328
+ std::stringstream msg;
329
+ msg << "Opening file '" << recipe_file << "' failed with error: " << strerror(errno);
330
+ LOG_ERROR("%s", msg.str().c_str());
331
+ throw UrException(msg.str());
332
+ }
333
std::string line;
334
while (std::getline(file, line))
335
0 commit comments