Log error to Event log instead of displaying ErrorDialog which is not possible because project is not completely opened.

This commit is contained in:
Rik van der Kleij 2019-12-26 16:04:41 +01:00
parent 2a76f2eb70
commit 348b952b8c

View File

@ -79,7 +79,7 @@ class HaskellModuleBuilder extends TemplateModuleBuilder(null, HaskellModuleType
packageRelativePath.flatMap(pp => HaskellModuleBuilder.createCabalInfo(rootModel.getProject, project.getBasePath, pp)) match {
case Some(ci) => cabalInfo = ci
case None =>
Messages.showErrorDialog(s"Couldn't create Haskell module due to failure retrieving or parsing Cabal file for package path `${project.getBasePath}`", "No Cabal file info")
HaskellNotificationGroup.logErrorBalloonEvent(project, s"Couldn't create Haskell module due to failure retrieving or parsing Cabal file for package path `${project.getBasePath}`")
}
}