Skip to content

Commit

Permalink
Actually forward the error to the test executor
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3-M4513R committed Sep 20, 2024
1 parent f21e958 commit dcb6b1c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions integration/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,7 @@ enum Error{

const VERSION: &str = env!("CARGO_PKG_VERSION");
#[tokio::main]
async fn main() {
println!("Hello");
match test().await {
Ok(()) => {}
Err(e) => eprint!("{e}")
}
}
async fn test() -> Result<(), anyhow::Error>{
async fn main() -> Result<(), anyhow::Error> {
dotenv::dotenv().map_err(|e|Error::DotenvInitError(e))?;
let username = dotenv::var("USERNAME").map_err(|e|Error::NoUsername(e))?;
let password = dotenv::var("PASSWORD").map_err(|e|Error::NoPassword(e))?;
Expand Down

0 comments on commit dcb6b1c

Please sign in to comment.