From 2660fcce254cd15592ad3a147d63139d14ab16ac Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 22 Jun 2022 18:54:49 +0200 Subject: [PATCH] fix(cli): not printing straight log after it errors This regression was introduced in 6c0b7e1, preventing the debugger from printing straight.el's process log when a straight.el error occurs. Instead, it would print a less-than-helpful backtrace. Amend: 6c0b7e1530a6 --- core/core-cli-lib.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/core-cli-lib.el b/core/core-cli-lib.el index e0f744d78..b389e8346 100644 --- a/core/core-cli-lib.el +++ b/core/core-cli-lib.el @@ -899,8 +899,7 @@ considered as well." (context (or context (doom-cli-context-create))) (straight-error (and (bound-and-true-p straight-process-buffer) - (stringp data) - (string-match-p (regexp-quote straight-process-buffer) data) + (member straight-process-buffer data) (with-current-buffer (straight--process-buffer) (split-string (buffer-string) "\n" t)))) (error-file (doom-cli--output-file 'error context)))