We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ca7367 commit 4fe485cCopy full SHA for 4fe485c
src/main.rs
@@ -313,7 +313,12 @@ async fn actual_main(cli_app: Ferium) -> Result<()> {
313
ProfileSubCommands::Delete { profile_name } => {
314
subcommands::profile::delete(&mut config, profile_name)?;
315
},
316
- ProfileSubCommands::List => subcommands::profile::list(&config),
+ ProfileSubCommands::List => {
317
+ if config.profiles.is_empty() {
318
+ bail!("There are no profiles configured, create a profile using `ferium profile create`")
319
+ }
320
+ subcommands::profile::list(&config);
321
+ },
322
ProfileSubCommands::Switch { profile_name } => {
323
subcommands::profile::switch(&mut config, profile_name)?;
324
0 commit comments