mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(cli): show straight logs after straight error
Instead of displaying an unhelpful backtrace about failed git commands, show the tail of the *straight-process* buffer.
This commit is contained in:
@ -905,7 +905,9 @@ considered as well."
|
|||||||
(context (or context (doom-cli-context-create)))
|
(context (or context (doom-cli-context-create)))
|
||||||
(straight-error
|
(straight-error
|
||||||
(and (bound-and-true-p straight-process-buffer)
|
(and (bound-and-true-p straight-process-buffer)
|
||||||
(member straight-process-buffer data)
|
(or (member straight-process-buffer data)
|
||||||
|
(string-match-p (regexp-quote straight-process-buffer)
|
||||||
|
(error-message-string data)))
|
||||||
(with-current-buffer (straight--process-buffer)
|
(with-current-buffer (straight--process-buffer)
|
||||||
(split-string (buffer-string) "\n" t))))
|
(split-string (buffer-string) "\n" t))))
|
||||||
(error-file (doom-cli--output-file 'error context)))
|
(error-file (doom-cli--output-file 'error context)))
|
||||||
|
Reference in New Issue
Block a user