summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2024-03-03 11:14:16 -0800
committercolin <colin@cicadas.surf>2024-03-03 11:14:16 -0800
commit95909f31b7d5f15d86bf70e9df49ae2f41da5b71 (patch)
tree892acef34275be602d4c3753576ef7bf70556e0d
parenta243ceab6cd3d17fffb115a253e28a21f2ebe3c6 (diff)
handle errors in case emacs / xvfb-run fails
-rw-r--r--fussy.lisp9
1 files 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)