1
0
mirror of https://codeberg.org/cage/tinmop/ synced 2025-02-26 09:27:36 +01:00

- capured errors signalled by malformed URI, when opening gopher address.

This commit is contained in:
cage 2022-10-09 14:13:37 +02:00
parent a429fe48f2
commit 0604a1d8d0

View File

@ -2262,9 +2262,11 @@ Currently the only recognized protocols are gemini and kami."
(open-kami-address trimmed-url)) (open-kami-address trimmed-url))
((text-utils:string-starts-with-p gopher-parser:+gopher-scheme+ trimmed-url) ((text-utils:string-starts-with-p gopher-parser:+gopher-scheme+ trimmed-url)
(with-enqueued-process () (with-enqueued-process ()
(handler-case
(multiple-value-bind (host port type selector) (multiple-value-bind (host port type selector)
(gopher-parser:parse-iri trimmed-url) (gopher-parser:parse-iri trimmed-url)
(gopher-window::make-request host port type selector)))) (gopher-window::make-request host port type selector))
(error (e) (error-message (_ "Invalid gopher address."))))))
(t (t
(open-gemini-address trimmed-url)))))) (open-gemini-address trimmed-url))))))
(if (null address) (if (null address)