From 0604a1d8d04d291220fe50d080de52058f12f846 Mon Sep 17 00:00:00 2001 From: cage Date: Sun, 9 Oct 2022 14:13:37 +0200 Subject: [PATCH] - capured errors signalled by malformed URI, when opening gopher address. --- src/ui-goodies.lisp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ui-goodies.lisp b/src/ui-goodies.lisp index d7b7e3c..4e4bf64 100644 --- a/src/ui-goodies.lisp +++ b/src/ui-goodies.lisp @@ -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 () - (multiple-value-bind (host port type selector) - (gopher-parser:parse-iri trimmed-url) - (gopher-window::make-request host port type selector)))) + (handler-case + (multiple-value-bind (host port type selector) + (gopher-parser:parse-iri trimmed-url) + (gopher-window::make-request host port type selector)) + (error (e) (error-message (_ "Invalid gopher address.")))))) (t (open-gemini-address trimmed-url)))))) (if (null address)