Skip to content

Commit

Permalink
Merge pull request #8 from lgrossi/lucas/fix-api-key-command
Browse files Browse the repository at this point in the history
Fix api_key error handling
  • Loading branch information
pgoodjohn authored Dec 11, 2023
2 parents bd10ac4 + 8625c5e commit 140da64
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/mollie_cli/src/auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ pub fn command(command: &AuthCommand) {
}

match api_key {
Some(api_key) => store::api_key(api_key),
Some(api_key) => match store::api_key(api_key) {
Ok(_) => {}
Err(err) => {
info!("Error: {:?}", err);
}
}
None => {}
}

Expand Down

0 comments on commit 140da64

Please # to comment.