mirror of
https://codeberg.org/cage/tinmop/
synced 2025-01-21 03:15:35 +01:00
- [GUI] improved error message when an host is not found on gemlogs refreshing.
This commit is contained in:
parent
b220bc8acb
commit
82f0519249
@ -25,6 +25,11 @@
|
||||
(let ((url (read-line *standard-input* nil nil nil)))
|
||||
(write-sequence (gemini-client:slurp-gemini-url url) *standard-output*)
|
||||
(os-utils:exit-program 0))
|
||||
(error () (os-utils:exit-program 1))))
|
||||
(usocket:ns-host-not-found-error (e)
|
||||
(format *error-output* "~a ~a~%" e (usocket:host-or-ip e))
|
||||
(os-utils:exit-program 1))
|
||||
(error (e)
|
||||
(format *error-output* "~a~%" e)
|
||||
(os-utils:exit-program 1))))
|
||||
|
||||
(main)
|
||||
|
@ -60,4 +60,10 @@
|
||||
(let ((all-subscribed-gemlogs (mapcar #'db:row-url (db:gemini-all-subscriptions))))
|
||||
(loop for subscription in all-subscribed-gemlogs
|
||||
collect
|
||||
(gemini-gemlog-refresh-subscription subscription))))
|
||||
(handler-case
|
||||
(gemini-gemlog-refresh-subscription subscription)
|
||||
(usocket:ns-host-not-found-error (e)
|
||||
(error (_ "unable to connect to \"~a\": host not found")
|
||||
(usocket:host-or-ip e)))
|
||||
(error (e)
|
||||
(error e))))))
|
||||
|
Loading…
Reference in New Issue
Block a user