From ae63ff0cc007c9680e18717381c3a000d26275f4 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 20 Sep 2024 17:52:09 +0200 Subject: Support HTTP and HTTPS URLs --- lib/SlackBuilder/Trans.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/SlackBuilder/Trans.hs') diff --git a/lib/SlackBuilder/Trans.hs b/lib/SlackBuilder/Trans.hs index 515c1d4..dea0d4b 100644 --- a/lib/SlackBuilder/Trans.hs +++ b/lib/SlackBuilder/Trans.hs @@ -23,7 +23,7 @@ import qualified Codec.Compression.Lzma as Lzma data SlackBuilderException = UpdaterNotFound Text - | HttpsUrlExpected URI + | UnsupportedUrlType URI | LzmaDecompressionFailed Lzma.LzmaRet deriving Show @@ -31,7 +31,7 @@ instance Exception SlackBuilderException where displayException (UpdaterNotFound updateName) = Text.unpack $ Text.concat ["Requested package \"", updateName, "\" was not found"] - displayException (HttpsUrlExpected givenURI) = Text.unpack + displayException (UnsupportedUrlType givenURI) = Text.unpack $ "Only https URLs are supported, got: " <> URI.render givenURI displayException (LzmaDecompressionFailed Lzma.LzmaRetOK) = "Operation completed successfully" -- cgit v1.2.3