From 2c4b5b2f9362a56183b607d47a6a7e974af06e8c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 26 Jan 2021 22:38:07 -0500 Subject: [PATCH] Fix type error when printing straight errors --- core/core-cli.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core-cli.el b/core/core-cli.el index 9b3f9a5ff..c186117e8 100644 --- a/core/core-cli.el +++ b/core/core-cli.el @@ -260,8 +260,9 @@ BODY will be run when this dispatcher is called." (string-match-p (regexp-quote straight-process-buffer) data)) (print! (error "There was an unexpected package error")) - (print-group! - (print! "%s" (string-trim-right (straight--process-get-output))))) + (when-let (output (straight--process-get-output)) + (print-group! + (print! "%s" (string-trim-right output))))) ((print! (error "There was an unexpected error")) (print-group! (print! "%s %s" (bold "Message:") (get type 'error-message))