From a1908c075e011347ade0a07372fffaeb1b00fd0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20Boury?= Date: Mon, 3 Jun 2024 11:04:25 +0200 Subject: [PATCH] If the URL linked in the text is inacessible, it still opens the web browser with this URL --- src/Microdown/MicHTTPResourceReference.class.st | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Microdown/MicHTTPResourceReference.class.st b/src/Microdown/MicHTTPResourceReference.class.st index c53383bc..21daf695 100644 --- a/src/Microdown/MicHTTPResourceReference.class.st +++ b/src/Microdown/MicHTTPResourceReference.class.st @@ -39,8 +39,7 @@ MicHTTPResourceReference class >> getBytesByHttp: uri [ get. ^ client entity bytes ] on: ZnHttpUnsuccessful, NetworkError, MessageNotUnderstood - do: [ :error | - error resignalAs: (MicResourceReferenceError new messageText: 'Could not access ', uri printString) ]. + do: [ WebBrowser openOn: uri ]. ] { #category : 'instance creation' }