diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2015-01-19 02:44:04 +0000 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2015-01-19 02:44:04 +0000 |
commit | da93181d06d03698c4970d75cde84ec117e48703 (patch) | |
tree | f06d72b6110b92ac70f8682be39a58e8674e338f | |
parent | 25e12ca7b20bc48fc5ff866a8427b08df7c1c71a (diff) | |
download | pandoc-da93181d06d03698c4970d75cde84ec117e48703.tar.gz |
Better warning when trying to read multiple binary files
-rw-r--r-- | pandoc.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1255,7 +1255,8 @@ main = do Right (bs,_) -> return $ UTF8.toString bs let readFiles [] = error "Cannot read archive from stdin" - readFiles (x:_) = B.readFile x + readFiles [x] = B.readFile x + readFiles (x:xs) = mapM (warn . ("Ignoring: " ++)) xs >> B.readFile x let convertTabs = tabFilter (if preserveTabs || readerName' == "t2t" then 0 |