diff --git a/hdocs.cabal b/hdocs.cabal
--- a/hdocs.cabal
+++ b/hdocs.cabal
@@ -1,5 +1,5 @@
 name:                hdocs
-version:             0.4.1.1
+version:             0.4.1.2
 synopsis:            Haskell docs tool
 description:
   Tool and library to get docs for installed packages and source files.
diff --git a/src/HDocs/Haddock.hs b/src/HDocs/Haddock.hs
--- a/src/HDocs/Haddock.hs
+++ b/src/HDocs/Haddock.hs
@@ -46,7 +46,7 @@
 -- | Read docs for haskell module
 readSource :: [String] -> FilePath -> ErrorT String IO (String, ModuleDocMap)
 readSource opts f = do
-	ifaces <- liftIO $ createInterfaces ([Flag_Verbosity "0", Flag_NoWarnings] ++ map Flag_OptGhc opts) [f]
+	ifaces <- liftError $ liftIO $ createInterfaces ([Flag_Verbosity "0", Flag_NoWarnings] ++ map Flag_OptGhc opts) [f]
 	iface <- maybe (throwError $ "Failed to load docs for " ++ f) return $ listToMaybe ifaces
 	return $ interfaceDocs iface
 
