message: Undo error
diff: @@ -26,22 +26,11 @@ impl ResultHandler {
  pub fn one<T>(err: ErrorCode, receiver: Receiver<(ErrorCode, T)>) -> Result<T, ErrorCode> {
  err.try_err()?;
  - let res = receiver.recv();
  - match res {
  - Ok((err, val)) => {
  + let (err, val) = receiver.recv()?;
  +
  err.try_err()?;
  +
  Ok(val)
  - },
  - Err(e) => {
  - println!("An error was received {:?}", e);
  - Err(ErrorCode::Success)
  - }
  - }
  -// let (err, val) = receiver.recv()?;
  -//
  -// err.try_err()?;
  -//
  -// Ok(val)
  }
  pub fn one_timeout<T>(err: ErrorCode, receiver: Receiver<(ErrorCode, T)>, timeout: Duration) -> Result<T, ErrorCode> {
  