Support HTTP and HTTPS URLs
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user