emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa-release/hyperdrive 7c6f0b0b7c 5/6: Comment: (h/restart) Ad


From: ELPA Syncer
Subject: [nongnu] elpa-release/hyperdrive 7c6f0b0b7c 5/6: Comment: (h/restart) Add NOTE
Date: Tue, 10 Sep 2024 01:00:16 -0400 (EDT)

branch: elpa-release/hyperdrive
commit 7c6f0b0b7c671a7b96a9c8e528acecb7a0784619
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>

    Comment: (h/restart) Add NOTE
---
 hyperdrive.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hyperdrive.el b/hyperdrive.el
index b46321e061..180eb6257a 100644
--- a/hyperdrive.el
+++ b/hyperdrive.el
@@ -142,6 +142,9 @@ which see."
   "Restart the gateway."
   (interactive)
   (h/message "Restarting gateway...")
+  ;; NOTE: Demote errors to continue execution in case the gateway is
+  ;; stopped/stopping.  Don't pass FORMAT to `with-demoted-errors' since the
+  ;; errors `h/stop' may signal are already prefixed with "Hyperdrive".
   (with-demoted-errors (h/stop))
   (with-timeout (10 (h/error "Timed out waiting for gateway to stop"))
     (cl-loop while (h/gateway-live-p)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]