branch: elpa-release/hyperdrive
commit 7c6f0b0b7c671a7b96a9c8e528acecb7a0784619
Author: Joseph Turner <[email protected]>
Commit: Joseph Turner <[email protected]>
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)