Fix CLI error not including straight output
This commit is contained in:
parent
6e6f2ddca3
commit
098f10306d
1 changed files with 5 additions and 4 deletions
|
@ -256,14 +256,15 @@ BODY will be run when this dispatcher is called."
|
|||
(print! (error "There was an unexpected error"))
|
||||
(print-group!
|
||||
(print! "%s %s" (bold "Message:") (get error 'error-message))
|
||||
(print! "%s %s" (bold "Data:") (cons error data))
|
||||
(print! "%s %S" (bold "Data:") (cons error data))
|
||||
(when (and (bound-and-true-p straight-process-buffer)
|
||||
(string-match-p (regexp-quote straight-process-buffer)
|
||||
(get error 'error-message)))
|
||||
(ignore-errors
|
||||
(string-match-p "straight" (car data))))
|
||||
(print! (bold "Straight output:"))
|
||||
(let ((output (straight--process-get-output)))
|
||||
(appendq! data (list (cons "STRAIGHT" output)))
|
||||
(print-group! (print! "%s" output))))
|
||||
(print-group!
|
||||
(print! "%s" (string-trim-right output)))))
|
||||
(when backtrace
|
||||
(print! (bold "Backtrace:"))
|
||||
(print-group!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue