Skip to content
Snippets Groups Projects
Commit e46ad5b4 authored by Fabian Tërnava's avatar Fabian Tërnava
Browse files

better logging of errors if a skill raises an exception

parent 8895ba26
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ namespace armarx
}
catch (const std::exception& ex)
{
ARMARX_ERROR_S << "An errr occured during the reset of skill '" << skillName << "': " << ex.what();
ARMARX_ERROR_S << "An errr occured during the reset of skill '" << skillName << "'. The error was: " << ex.what();
updateStatus(skills::provider::dto::Execution::Status::Failed);
return Skill::Status::Failed;
......@@ -76,7 +76,7 @@ namespace armarx
}
catch (const std::exception& ex)
{
ARMARX_ERROR_S << "An errr occured during the initialization of skill '" << skillName << "'. Executing exit for safety: " << ex.what();
ARMARX_ERROR_S << "An errr occured during the initialization of skill '" << skillName << "'. Executing exit for safety. The error was: " << ex.what();
skill->exit(aron_params);
updateStatus(skills::provider::dto::Execution::Status::Failed);
......@@ -93,7 +93,7 @@ namespace armarx
}
catch (const std::exception& ex)
{
ARMARX_ERROR_S << "An errr occured during the main method of skill '" << skillName << "'. Executing exit for safety: " << ex.what();
ARMARX_ERROR_S << "An errr occured during the main method of skill '" << skillName << "'. Executing exit for safety. The error was: " << ex.what();
skill->exit(aron_params);
updateStatus(skills::provider::dto::Execution::Status::Failed);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment