Publish: Fix potential format nil call

This commit is contained in:
TEC 2021-12-29 12:31:14 +08:00
parent d1e3042aea
commit 7ea23fcf7a
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,9 @@
(apply #'format (format "%%s%%-%ds" (length (plist-get dep :padded-name)))
(pcase (process-status (plist-get dep :proc))
('run '("\033[0;33m" "Active"))
('exit '("\033[0;32m" "Complete")))))
('exit '("\033[0;32m" "Complete"))
(_ '("\033[0;31m" (format "Unrecognised status %s"
(process-status (plist-get dep :proc))))))))
apm-dependent-processes
" ")
"\033[0;90m")