emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/buttercup d6de872 309/340: Improve buttercup-reporter-batc


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup d6de872 309/340: Improve buttercup-reporter-batch--print-failed-spec-report
Date: Thu, 16 Dec 2021 14:59:56 -0500 (EST)

branch: elpa/buttercup
commit d6de872880f91b6c3699fa383989e76f184132cb
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>

    Improve buttercup-reporter-batch--print-failed-spec-report
    
    Make sure `description' is a cons before taking its car.
---
 buttercup.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/buttercup.el b/buttercup.el
index 69b46be..4d9e22b 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -1707,7 +1707,7 @@ Colorize parts of the output if COLOR is non-nil."
                             (buttercup-colorize "FAILED" 'red)
                           "FAILED")
                         description))
-     ((eq (car description) 'error)
+     ((and (consp description) (eq (car description) 'error))
       (buttercup--print "%S: %S\n\n"
                         (car description)
                         (cadr description)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]