From e9adb37a11819d4da806a1cbb6c05894770b9390 Mon Sep 17 00:00:00 2001 From: Sergey Kvachonok Date: Wed, 27 Nov 2024 16:44:11 +0300 Subject: [PATCH] refactor: Show better errors for `conan profile detect` Silence pedantic Clippy warnings. --- src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 0e234c3..89d803f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -350,15 +350,20 @@ impl ConanInstall { command.arg("profile").arg("detect").arg("--exist-ok"); if let Some(profile) = profile { + println!("running 'conan profile detect' for profile '{profile}'"); + command.arg("--name").arg(profile); + } else { + println!("running 'conan profile detect' for the default profile"); } let status = command .status() .expect("failed to run the Conan executable"); + #[allow(clippy::manual_assert)] if !status.success() { - panic!("conan profile detect command failed: {}", status); + panic!("'conan profile detect' command failed: {status}"); } }