@@ -83,7 +83,6 @@ import System.Exit (exitSuccess)
8383import System.FilePath
8484import System.IO (nativeNewline, stdout)
8585import qualified System.IO as IO (Newline (..))
86−import System.IO.Error (isDoesNotExistError)
8786import Text.Pandoc
8887import Text.Pandoc.BCP47 (Lang (..), parseBCP47)
8988import Text.Pandoc.Builder (setMeta, deleteMeta)
@@ -383,8 +382,7 @@ convertWithOpts opts = do
383382 ((fst <$> fetchItem tp') `catchError`
384383 (\e ->
385384 case e of
386− PandocIOError _ e' |
387− isDoesNotExistError e' ->
385+ PandocResourceNotFound _ ->
388386 readDataFile ("templates" </> tp')
389387 _ -> throwError e))
390388