Quote branch name on output

This commit is contained in:
Hannes Körber
2022-06-08 18:41:20 +02:00
committed by Hannes Körber
parent 0f45708e81
commit a3dc2df37d

View File

@@ -1184,7 +1184,7 @@ impl RepoHandle {
&& !branch_name.ends_with(&format!("{}{}", super::BRANCH_NAMESPACE_SEPARATOR, name))
{
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
)));
}