fix(cli): doctor: pluralizing single errors/warnings
This commit is contained in:
parent
bd0728e9b3
commit
7a8383c2d1
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ in."
|
||||||
(list doom-doctor--errors "error" 'red)))
|
(list doom-doctor--errors "error" 'red)))
|
||||||
(when (car msg)
|
(when (car msg)
|
||||||
(print! (color (nth 2 msg)
|
(print! (color (nth 2 msg)
|
||||||
(if (cdr msg)
|
(if (cdar msg)
|
||||||
"There are %d %ss!"
|
"There are %d %ss!"
|
||||||
"There is %d %s!")
|
"There is %d %s!")
|
||||||
(length (car msg)) (nth 1 msg)))))
|
(length (car msg)) (nth 1 msg)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue