From 95909f31b7d5f15d86bf70e9df49ae2f41da5b71 Mon Sep 17 00:00:00 2001 From: colin Date: Sun, 3 Mar 2024 11:14:16 -0800 Subject: handle errors in case emacs / xvfb-run fails --- fussy.lisp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fussy.lisp b/fussy.lisp index f593dbc..08a7eab 100644 --- a/fussy.lisp +++ b/fussy.lisp @@ -166,9 +166,12 @@ differs from the theme-pkg instance already in the data store." (if (uiop:directory-exists-p emacs-dir) (fussy-log "Directory NOT DELETE!?") (fussy-log "Directory successfully deleted")))) - - (generate-images-for-packages - (mapcar #'archive-theme-name themes-to-update)) + (handler-case + (generate-images-for-packages + (mapcar #'archive-theme-name themes-to-update)) + (error (e) + (fussy-log "Error while generating images: ~s" + e))) ;; if we didn't error: update the db (dolist (archive-theme themes-to-update) -- cgit v1.2.3