Skip to content

Commit

Permalink
Fix typo in response
Browse files Browse the repository at this point in the history
  • Loading branch information
cholcombe973 committed Sep 28, 2017
1 parent d139419 commit d3e4372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disk-manager/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ fn add_disk(s: &mut Socket, d: &str, backend: &BackendType, config_dir: &Path) -
result.set_result(OpResult_ResultType::OK);
}
Err(e) => {
result.set_result(OpResult_ResultType::OK);
result.set_result(OpResult_ResultType::ERR);
result.set_error_msg(e.to_string());
}
}
Expand Down Expand Up @@ -176,7 +176,7 @@ fn remove_disk(s: &mut Socket, d: &str, backend: &BackendType, config_dir: &Path
result.set_result(OpResult_ResultType::OK);
}
Err(e) => {
result.set_result(OpResult_ResultType::OK);
result.set_result(OpResult_ResultType::ERR);
result.set_error_msg(e.to_string());
}
};
Expand Down

0 comments on commit d3e4372

Please sign in to comment.