Fix #1653: uncaught error when async process times out

This commit is contained in:
Henrik Lissner 2019-08-08 22:59:57 -04:00
parent 115a436273
commit c266680c11
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -225,7 +225,9 @@ a list of packages that will be updated."
(while (not (async-ready (caar futures)))
(when (> time timeout)
(print! (warn "A thread has timed out. The following packages were skipped:\n\n %s"
(string-join (cdar futures) ", ")))
(mapconcat (lambda (p) (plist-get p :package))
(cdar futures)
", ")))
(throw 'timeout t))
(sleep-for 2)
(cl-incf time)