]> git.eshelyaron.com Git - emacs.git/commitdiff
* eglot.el (eglot--connect): display seconds on timeout.
authorStefan Kangas <stefankangas@gmail.com>
Sat, 15 Jan 2022 12:47:30 +0000 (13:47 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 15 Jan 2022 12:48:00 +0000 (13:48 +0100)
lisp/progmodes/eglot.el

index 9536a72a2635311425d2cf1f5ea1fc56a5959fa0..bf3e54c6b4a59b47f112b06757dca02223258bbb 100644 (file)
@@ -1208,7 +1208,8 @@ in project `%s'."
                       :timeout-fn (lambda ()
                                     (unless cancelled
                                       (jsonrpc-shutdown server)
-                                      (let ((msg (format "Timed out")))
+                                      (let ((msg (format "Timed out after %s seconds"
+                                                         eglot-connect-timeout)))
                                         (if tag (throw tag `(error . ,msg))
                                           (eglot--error msg))))))
                      (cond ((numberp eglot-sync-connect)