1
0
Fork 0

- 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
1 changed files with 5 additions and 3 deletions

View File

@ -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)