summaryrefslogtreecommitdiff
path: root/lib/SlackBuilder/Trans.hs
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2024-09-20 17:52:09 +0200
committerEugen Wissner <belka@caraus.de>2024-09-20 17:52:09 +0200
commitae63ff0cc007c9680e18717381c3a000d26275f4 (patch)
treef8e5663e47caf3b2385ab2ea56d0c633112bd832 /lib/SlackBuilder/Trans.hs
parent5b4caa8ff75ab50b673e5d5b9ae37eb73fb21c2a (diff)
downloadslackbuilder-ae63ff0cc007c9680e18717381c3a000d26275f4.tar.gz
Support HTTP and HTTPS URLs
Diffstat (limited to 'lib/SlackBuilder/Trans.hs')
-rw-r--r--lib/SlackBuilder/Trans.hs4
1 files changed, 2 insertions, 2 deletions
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"