summaryrefslogtreecommitdiff
path: root/lib/SlackBuilder/Trans.hs
diff options
context:
space:
mode:
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"