zilch-cli-rust: fix statusbar when stderr is not a terminal
This commit is contained in:
parent
741fc30d84
commit
0ffa327f9b
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ executables in the crate, if unspecified)
|
|||
; Set up the logger.
|
||||
(define (set-print-logs val) #f)
|
||||
(let ((prev-error-handler (current-exception-handler))) (current-exception-handler (lambda data (set-print-logs #t) (apply prev-error-handler data))))
|
||||
(when (not (assoc 'debug options)) (terminal-port? (current-error-port))
|
||||
(when (terminal-port? (current-error-port))
|
||||
(let-values (((new-out new-err statusbar-set-print-logs logger) (statusbar-logger (current-output-port) (current-error-port) (assoc 'print-build-logs options))))
|
||||
(current-output-port new-out)
|
||||
(current-error-port new-err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue