Skip to content

Commit

Permalink
Added BoolEnvironmentError
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpita-Jaiswal committed Feb 21, 2024
1 parent 5c6d56b commit 7b9cf0e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastn-core/src/auth/email_password/create_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub(crate) async fn create_account(
.config
.ds
.env_bool("FASTN_ENABLE_EMAIL", true)
.await
.await?
{
println!("CONFIRMATION LINK: {}", conf_link);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pub(crate) async fn create_and_send_confirmation_email(
.config
.ds
.env_bool("FASTN_ENABLE_EMAIL", true)
.await,
.await?,
format!("{} <{}>", name, email)
.parse::<lettre::message::Mailbox>()
.unwrap(),
Expand Down
3 changes: 3 additions & 0 deletions fastn-core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ pub enum Error {
#[error("MissingEnvironmentVariableError: {}", _0)]
EnvironmentVariableError(#[from] std::env::VarError),

#[error("BoolEnvironmentError: {}", _0)]
BoolEnvironmentError(#[from] fastn_ds::BoolEnvironmentError),

Check failure on line 111 in fastn-core/src/error.rs

View workflow job for this annotation

GitHub Actions / Rust/JS Checks/Formatting

cannot find type `BoolEnvironmentError` in crate `fastn_ds`

Check failure on line 111 in fastn-core/src/error.rs

View workflow job for this annotation

GitHub Actions / Rust/JS Checks/Formatting

cannot find type `BoolEnvironmentError` in crate `fastn_ds`

#[error("DatabaseError: {message}")]
DatabaseError { message: String },

Expand Down

0 comments on commit 7b9cf0e

Please sign in to comment.