aboutsummaryrefslogtreecommitdiffstats
path: root/crates
diff options
context:
space:
mode:
authorDavid Jack Wange Olrik <david@olrik.dk>2025-08-04 14:42:00 +0200
committerGitHub <noreply@github.com>2025-08-04 14:42:00 +0200
commit515dd191e2b7a3e6f1d013c5ebb4f22f696b06dc (patch)
tree285ae53a4aa20efd131a6b548bcbfb71b4ef1a2c /crates
parentchore(deps): bump debian (#2846) (diff)
downloadatuin-515dd191e2b7a3e6f1d013c5ebb4f22f696b06dc.zip
fix: Make status exit 1 if not logged in (#2843)
Diffstat (limited to 'crates')
-rw-r--r--crates/atuin/src/command/client/sync/status.rs6
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(