Skip to content

Commit

Permalink
Use SUCCESS instead of NO_ERROR
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed Aug 23, 2022
1 parent 2973504 commit 8ffcfd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parameters/src/Client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ ParametersClient::SetParameter(
throw std::runtime_error {
"ParametersClient::SetParameter(): unexpected failure"};
}
if (res.data() == msgs::ParameterError::NO_ERROR) {
if (res.data() == msgs::ParameterError::SUCCESS) {
return;
}
if (res.data() == msgs::ParameterError::NOT_DECLARED) {
Expand Down Expand Up @@ -196,7 +196,7 @@ ParametersClient::DeclareParameter(
throw std::runtime_error {
"ParametersClient::DeclareParameter(): unexpected failure"};
}
if (res.data() == msgs::ParameterError::NO_ERROR) {
if (res.data() == msgs::ParameterError::SUCCESS) {
return;
}
if (res.data() == msgs::ParameterError::ALREADY_DECLARED) {
Expand Down

0 comments on commit 8ffcfd6

Please sign in to comment.