Skip to content

Commit

Permalink
fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominion5254 committed Dec 18, 2024
1 parent 27f7547 commit 8a67c21
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/startos/src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -895,12 +895,13 @@ pub async fn test_system_smtp(ctx: RpcContext, smtp: SmtpValue) -> Result<(), Er
.map_err(|e| Error::new(eyre!("mail-send error: {:?}", e), ErrorKind::Unknown))?
.send(message)
.await
.map_err(|e| Error::new(eyre!("mail-send error: {:?}", e), ErrorKind::Unknown))?
.map_err(|e| Error::new(eyre!("mail-send error: {:?}", e), ErrorKind::Unknown))?;
Ok(())
} else {
return Error::new(
return Err(Error::new(
eyre!("mail-send requires a password"),
ErrorKind::IncorrectPassword,
)
));
}
}

Expand Down

0 comments on commit 8a67c21

Please sign in to comment.