mirror of https://codeberg.org/cage/tinmop/
- capured errors signalled by malformed URI, when opening gopher address.
This commit is contained in:
parent
a429fe48f2
commit
0604a1d8d0
|
@ -2262,9 +2262,11 @@ Currently the only recognized protocols are gemini and kami."
|
|||
(open-kami-address trimmed-url))
|
||||
((text-utils:string-starts-with-p gopher-parser:+gopher-scheme+ trimmed-url)
|
||||
(with-enqueued-process ()
|
||||
(handler-case
|
||||
(multiple-value-bind (host port type selector)
|
||||
(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
|
||||
(open-gemini-address trimmed-url))))))
|
||||
(if (null address)
|
||||
|
|
Loading…
Reference in New Issue