summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--geiser-chez.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/geiser-chez.el b/geiser-chez.el
index a2213f3..170570d 100644
--- a/geiser-chez.el
+++ b/geiser-chez.el
@@ -188,7 +188,7 @@ Return its local name."
(defun geiser-chez--display-error (_module key msg)
"Display an error found during evaluation with the given KEY and message MSG."
- (when (listp msg)
+ (when (and msg (listp msg))
(save-excursion
(insert (car msg))
(insert "\n")