branch: externals/eglot
commit 17cf38819d08b1eb66eab1753c5111901cc448ee
Author: João Távora <joaotav...@gmail.com>
Commit: João Távora <joaotav...@gmail.com>

    Fix eglot--error and eglot--message helpers
    
    * eglot.el (eglot--error, eglot--message):
    Safely interpret %s.
---
 eglot.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eglot.el b/eglot.el
index 30d5b43..01a6b5d 100644
--- a/eglot.el
+++ b/eglot.el
@@ -721,11 +721,11 @@ DEFERRED is passed to `eglot--async-request', which see."
 ;;;
 (defun eglot--error (format &rest args)
   "Error out with FORMAT with ARGS."
-  (error (apply #'format format args)))
+  (error "[eglot] %s" (apply #'format format args)))
 
 (defun eglot--message (format &rest args)
   "Message out with FORMAT with ARGS."
-  (message (concat "[eglot] " (apply #'format format args))))
+  (message "[eglot] %s" (apply #'format format args)))
 
 (defun eglot--warn (format &rest args)
   "Warning message with FORMAT and ARGS."

Reply via email to