Skip to content

Commit 2cc8b9a

Browse files
committed
Improve formatting of AmbiguousLabelMatch message
1 parent ca04ebf commit 2cc8b9a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/github.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,11 @@ impl fmt::Display for AmbiguousLabelMatch {
601601
f,
602602
"Unsure which label to use for `{}` - could be one of: {}",
603603
self.requested_label,
604-
self.labels.join(", ")
604+
self.labels
605+
.iter()
606+
.map(|l| format!("`{}`", l))
607+
.collect::<Vec<_>>()
608+
.join(", ")
605609
)
606610
}
607611
}

0 commit comments

Comments
 (0)