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: 6c0b7e1530
This commit is contained in:
Henrik Lissner 2022-06-22 18:54:49 +02:00
parent 666cc1fda7
commit 2660fcce25
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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)))