diff --git a/cli/tests/test_workspaces.rs b/cli/tests/test_workspaces.rs index 560af8487..97bd597e4 100644 --- a/cli/tests/test_workspaces.rs +++ b/cli/tests/test_workspaces.rs @@ -643,7 +643,7 @@ fn test_workspaces_forget() { // Revision "@" cannot be used let stderr = test_env.jj_cmd_failure(&main_path, &["log", "-r", "@"]); insta::assert_snapshot!(stderr, @r###" - Error: Workspace "default" doesn't have a working copy + Error: Workspace "default" doesn't have a working-copy commit "###); // Try to add back the workspace diff --git a/lib/src/revset.rs b/lib/src/revset.rs index 16c5872c1..0241024c8 100644 --- a/lib/src/revset.rs +++ b/lib/src/revset.rs @@ -53,7 +53,7 @@ pub enum RevsetResolutionError { name: String, candidates: Vec, }, - #[error("Workspace \"{name}\" doesn't have a working copy")] + #[error("Workspace \"{name}\" doesn't have a working-copy commit")] WorkspaceMissingWorkingCopy { name: String }, #[error("An empty string is not a valid revision")] EmptyString,