diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-18 19:55:33 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-18 19:55:33 -0800 |
commit | 6e7a76c800ea52a60a7e29bd092b54be1ff79e1c (patch) | |
tree | f06d72b6110b92ac70f8682be39a58e8674e338f | |
parent | 25e12ca7b20bc48fc5ff866a8427b08df7c1c71a (diff) | |
parent | da93181d06d03698c4970d75cde84ec117e48703 (diff) | |
download | pandoc-6e7a76c800ea52a60a7e29bd092b54be1ff79e1c.tar.gz |
Merge pull request #1888 from mpickering/errormsg
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 |