From cb0c72880e2264c30a4ce5b798907e971aba36e8 Mon Sep 17 00:00:00 2001 From: c4lliope Date: Mon, 12 May 2025 16:30:37 -0400 Subject: [PATCH] Rephrase unclear bail message. --- helix-view/src/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index ae31bab60..7a3127db2 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -956,7 +956,7 @@ impl Document { Some(path) => helix_stdx::path::canonicalize(path), None => { if self.path.is_none() { - bail!("Can't save with no path set!"); + bail!("Document has no path; please append a name or path to the save command."); } self.path.as_ref().unwrap().clone() }