Skip to content

Commit a9a50ae

Browse files
author
Aaron Roller
committed
clean message AM-695/error-methods
1 parent 5d3f2d6 commit a9a50ae

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/super_lib/am_life_cycle.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ void AMLifeCycle::error(std::string error_code, bool forced)
281281

282282
void AMLifeCycle::error(std::string message, std::string error_code, bool forced)
283283
{
284-
std::string error_code_message = " Error[" + error_code + "] ";
284+
std::string error_code_message = "Error[" + error_code + "] ";
285285
if(withinConfigureTolerance() && !forced)
286286
{
287287
ROS_WARN_STREAM_THROTTLE(throttle_info_.warn_throttle_s,"Ignoring tolerant error for (" << configure_tolerance_s << "s) `" << message << "` " << error_code_message << "[GFRT]");
@@ -290,7 +290,6 @@ void AMLifeCycle::error(std::string message, std::string error_code, bool forced
290290
{
291291
std::string forced_prefix = forced?"Terminal ":"";
292292
std::string repeat_prefix = "";
293-
294293
//only change the state if
295294
if(!life_cycle_mediator_.redundantError(life_cycle_info_))
296295
{
@@ -303,7 +302,7 @@ void AMLifeCycle::error(std::string message, std::string error_code, bool forced
303302
repeat_prefix = "Repeated ";
304303
}
305304
std::string error_explanation=forced_prefix + repeat_prefix + error_code_message;
306-
ROS_ERROR_STREAM(message << " state: " << life_cycle_mediator_.stateToString(life_cycle_info_.state) << error_explanation << " [R45Y]" );
305+
ROS_ERROR_STREAM(message << " -> " << error_explanation << " [R45Y]" );
307306
}
308307
}
309308

0 commit comments

Comments
 (0)