let enter dismiss compile errors

This commit is contained in:
daniel
2008-02-03 20:28:52 +00:00
parent 481e42ab72
commit a626083721

View File

@@ -378,7 +378,7 @@ recompile force = io $ do
let msg = unlines $
["Error detected while loading xmonad configuration file: " ++ src]
++ lines ghcErr ++ ["","Please check the file for errors."]
doubleFork $ executeFile "xmessage" True [msg] Nothing
doubleFork $ executeFile "xmessage" True ["-default", "okay", msg] Nothing
return (status == ExitSuccess)
else return True
where getModTime f = catch (Just <$> getModificationTime f) (const $ return Nothing)