Quote branch name on output

This commit is contained in:
2022-06-13 22:47:49 +02:00
parent fad6f71876
commit c3aaea3332

View File

@@ -1180,7 +1180,7 @@ impl RepoHandle {
&& !branch_name.ends_with(&format!("{}{}", super::BRANCH_NAMESPACE_SEPARATOR, name)) && !branch_name.ends_with(&format!("{}{}", super::BRANCH_NAMESPACE_SEPARATOR, name))
{ {
return Err(WorktreeRemoveFailureReason::Error(format!( return Err(WorktreeRemoveFailureReason::Error(format!(
"Branch {} is checked out in worktree, this does not look correct", "Branch \"{}\" is checked out in worktree, this does not look correct",
&branch_name &branch_name
))); )));
} }