Skip to content

Commit

Permalink
tweak the default error string returned
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Gao <ethan.gao@linux.intel.com>
  • Loading branch information
gaoethan committed Dec 19, 2017
1 parent c49b6f7 commit 59df7e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rmw/src/validate_full_topic_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,6 @@ rmw_full_topic_name_validation_result_string(int validation_result)
case RMW_TOPIC_INVALID_TOO_LONG:
return "topic length should not exceed '" RMW_STRINGIFY(RMW_TOPIC_MAX_NAME_LENGTH) "'";
default:
return "undefined topic name type";
return "unknown result code for rwm topic name validation";
}
}
2 changes: 1 addition & 1 deletion rmw/src/validate_namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,6 @@ rmw_namespace_validation_result_string(int validation_result)
case RMW_NAMESPACE_INVALID_TOO_LONG:
return "namespace should not exceed '" RMW_STRINGIFY(RMW_NAMESPACE_MAX_NAME_LENGTH) "'";
default:
return "undefined namespace type";
return "unknown result code for rmw namespace validation";
}
}
2 changes: 1 addition & 1 deletion rmw/src/validate_node_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ rmw_node_name_validation_result_string(int validation_result)
return
"node name length should not exceed '" RMW_STRINGIFY(RMW_NODE_NAME_MAX_NAME_LENGTH) "'";
default:
return "undefined node name type";
return "unknown result code for rmw node name validation";
}
}

0 comments on commit 59df7e6

Please sign in to comment.