aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Okay <okay@toyful.space>2022-03-25 15:39:27 -0500
committerColin Okay <okay@toyful.space>2022-03-25 15:39:27 -0500
commite95a60bce9d86ca3b2a7cdf41a0c4df3fc5cb3fd (patch)
tree53c1f1ac9ab0c0699eb09fe434c0e586861ecf62
parent4d65d894419c097aa366bc8798e53d7934ea838e (diff)
[add] specifically handling dexador's http errors on client
-rw-r--r--lib/state.lisp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/state.lisp b/lib/state.lisp
index 5ca5a7b..49cd5d8 100644
--- a/lib/state.lisp
+++ b/lib/state.lisp
@@ -179,5 +179,9 @@ sets the api's *host* variable. If BODY produces no errors, the "
(write-drafts-to-disk)
(write-cache-to-disk)
(write-config-to-disk))
+ (dexador.error:http-request-failed (e)
+ (format *error-output* "Operation failed. The server at ~a returned with ~a~%"
+ api:*host*
+ (dexador.error:response-status e)))
(error (e)
(format *error-output* "~a~%" e)))))