diff options
author | Colin Okay <okay@toyful.space> | 2022-03-25 15:39:27 -0500 |
---|---|---|
committer | Colin Okay <okay@toyful.space> | 2022-03-25 15:39:27 -0500 |
commit | e95a60bce9d86ca3b2a7cdf41a0c4df3fc5cb3fd (patch) | |
tree | 53c1f1ac9ab0c0699eb09fe434c0e586861ecf62 /lib | |
parent | 4d65d894419c097aa366bc8798e53d7934ea838e (diff) |
[add] specifically handling dexador's http errors on client
Diffstat (limited to 'lib')
-rw-r--r-- | lib/state.lisp | 4 |
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))))) |