aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-12-13 18:06:18 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-12-13 18:06:18 +0100
commit02626865bf0f076e416db2121b44d7fcad067e29 (patch)
tree20116b131627fa092fc109a6b1d13e7d45cc43c8
parent29561dde41b402362f8baa3d9cd87a07f743b9fd (diff)
downloadaerogramme-02626865bf0f076e416db2121b44d7fcad067e29.tar.gz
aerogramme-02626865bf0f076e416db2121b44d7fcad067e29.zip
use bail! instead of panic!
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 2beaf21..c854340 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -184,10 +184,10 @@ async fn main() -> Result<()> {
}
},
(Command::Provider(_), AnyConfig::Companion(_)) => {
- panic!("Your want to run a 'Provider' command but your configuration file has role 'Companion'.");
+ bail!("Your want to run a 'Provider' command but your configuration file has role 'Companion'.");
},
(Command::Companion(_), AnyConfig::Provider(_)) => {
- panic!("Your want to run a 'Companion' command but your configuration file has role 'Provider'.");
+ bail!("Your want to run a 'Companion' command but your configuration file has role 'Provider'.");
},
(Command::Tools(subcommand), _) => match subcommand {
ToolsCommand::CryptoRoot(crcommand) => {