Prettify output

This commit is contained in:
martoon 2019-03-11 17:16:25 +03:00
parent 2f4101c361
commit c59523ea61
No known key found for this signature in database
GPG Key ID: FF02288E36C0E4B0
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ gatherRepoInfo formatsSupport config root = do
return $ RepoInfo (M.fromList fileInfos)
where
rootNE = if null root then "." else root
dirOfRoot = if null root then "" else takeDirectory root
dirOfRoot = if root == "" || root == "." then "" else takeDirectory root
processFile file = do
let ext = takeExtension file
forM (formatsSupport ext) $ \scanFile ->

View File

@ -99,7 +99,7 @@ instance Buildable CrvVerifyError where
ExternalResourceUnavailable status ->
"⛂ Resource unavailable (" +| statusCode status |+ " " +|
decodeUtf8 @Text (statusMessage status) |+ ")"
ExternalResourceSomeError err -> "" +| build err |+ "\n"
ExternalResourceSomeError err -> "" +| build err |+ "\n\n"
where
anchorHints = \case
[] -> "\n"