diff options
author | Colin Okay <okay@toyful.space> | 2022-03-14 08:48:50 -0500 |
---|---|---|
committer | Colin Okay <okay@toyful.space> | 2022-03-14 08:48:50 -0500 |
commit | 1a1de0bb8c18798064d103b70a1c06d20eb3ad05 (patch) | |
tree | 0a644f86202416de3f44fa4a26a55ed9e4940605 | |
parent | e2091250cbc8dce679b52636647949d0b417e6be (diff) |
moved host assertion inside handler-case
-rw-r--r-- | lib/state.lisp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/state.lisp b/lib/state.lisp index 7a9a427..5ca5a7b 100644 --- a/lib/state.lisp +++ b/lib/state.lisp @@ -170,10 +170,10 @@ sets the api's *host* variable. If BODY produces no errors, the " (*cache* (read-cache-file)) (*drafts* (read-drafts-file)) (api:*host* (config-host *config*))) - (assert api:*host* () "ol must be configured with a server host.") - (set-term-width) (handler-case (progn + (assert api:*host* () "ol must be configured with a server host.") + (set-term-width) ,@body ;; only if there is no error do we save the local state. (write-drafts-to-disk) |