From 9d9d218327456ce16785820a8e61718d24dd67a1 Mon Sep 17 00:00:00 2001 From: pxseu <57842793+pxseu@users.noreply.github.com> Date: Sat, 13 May 2023 22:47:31 +0200 Subject: [PATCH] fix: test --- src/commands/ignite/utils.rs | 2 +- src/lib.rs | 1 + src/utils/mod.rs | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/commands/ignite/utils.rs b/src/commands/ignite/utils.rs index 5b78869..8215d8d 100644 --- a/src/commands/ignite/utils.rs +++ b/src/commands/ignite/utils.rs @@ -951,6 +951,6 @@ mod test { let estimate = get_price_estimate(&skus, &resources, &volume).unwrap(); - assert_eq!(estimate, "6.57"); + assert_eq!(estimate, "6.95"); } } diff --git a/src/lib.rs b/src/lib.rs index ad5dcb1..95afb05 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -72,6 +72,7 @@ pub async fn run() -> Result<()> { if let Err(error) = handle_command(cli.commands, state).await { log::error!("{error}"); + log::debug!("{error:#?}"); std::process::exit(1); } diff --git a/src/utils/mod.rs b/src/utils/mod.rs index c650b5a..1d4fccf 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -30,10 +30,10 @@ pub fn set_hook() { }; // add some color - log::error!("{}", message); + log::error!("{message}"); #[cfg(debug_assertions)] - log::debug!("{}", panic_info); + log::debug!("{panic_info}"); std::process::exit(1); }));