Skip to content

Commit

Permalink
Fix some issues with scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
connorslade committed Nov 26, 2024
1 parent b716204 commit fdfd526
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod answer;
mod misc;
mod part;
#[macro_use]
mod solution;
pub mod solution;

pub use answer::Answer;
pub use misc::{human_time, load};
Expand Down
4 changes: 2 additions & 2 deletions scaffold/src/commands/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pub fn verify_inner(session: &Session, address: &Url) -> Result<SessionVerificat
match session.verify(address) {
Ok(Some(verification)) => Ok(verification),
Ok(None) => {
bail!("[E] Session token is invalid. Sign in again and update with `aoc token`.")
bail!("Session token is invalid. Sign in again and update with `aoc token`.")
}
Err(err) => bail!("[E] Failed to verify session: {}", err),
Err(err) => bail!("Failed to verify session: {}", err),
}
}
2 changes: 1 addition & 1 deletion scaffold/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ mod session;
const TOKEN_VAR: &str = "AOC_TOKEN";

fn main() -> Result<()> {
dotenv::dotenv()?;
let args = Args::parse();

let _ = dotenv::dotenv();
let session = match &args.token {
Some(token) => Ok(Session::new(token)),
None => Session::from_env(),
Expand Down

0 comments on commit fdfd526

Please sign in to comment.