From 8625c5e120646dcb96a26dcf35839daebe118798 Mon Sep 17 00:00:00 2001 From: lgrossi Date: Mon, 11 Dec 2023 13:50:16 +0100 Subject: [PATCH] Fix api_key error handling --- crates/mollie_cli/src/auth/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/mollie_cli/src/auth/mod.rs b/crates/mollie_cli/src/auth/mod.rs index f9c91a4..3cf812a 100644 --- a/crates/mollie_cli/src/auth/mod.rs +++ b/crates/mollie_cli/src/auth/mod.rs @@ -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 => {} }