branch: elpa/buttercup commit d6de872880f91b6c3699fa383989e76f184132cb Author: Ola Nilsson <ola.nils...@gmail.com> Commit: Ola Nilsson <ola.nils...@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)))