diff options
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/atuin/src/command/client/sync/status.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/atuin/src/command/client/sync/status.rs b/crates/atuin/src/command/client/sync/status.rs index f59ef5b9..f0bee6ef 100644 --- a/crates/atuin/src/command/client/sync/status.rs +++ b/crates/atuin/src/command/client/sync/status.rs @@ -3,15 +3,13 @@ use std::path::PathBuf; use crate::{SHA, VERSION}; use atuin_client::{api_client, database::Database, settings::Settings}; use colored::Colorize; -use eyre::Result; +use eyre::{Result, bail}; pub async fn run(settings: &Settings, db: &impl Database) -> Result<()> { let session_path = settings.session_path.as_str(); if !PathBuf::from(session_path).exists() { - println!("You are not logged in to a sync server - cannot show sync status"); - - return Ok(()); + bail!("You are not logged in to a sync server - cannot show sync status"); } let client = api_client::Client::new( |
