better error message for devel flags

This commit is contained in:
Greg Weber 2011-12-27 10:33:58 -03:00
parent 74b1dc4a77
commit 8e1ca187b3

View File

@ -197,7 +197,7 @@ checkCabalFile gpd = case D.condLibrary gpd of
Just ct ->
case lookupDevelLib ct of
Nothing -> do
putStrLn "Error: no library configuration for -fdevel"
putStrLn "Error: no development flag found in your configuration file. Expected a 'library-only' flag or the older 'devel' flag"
exitFailure
Just dLib ->
case (D.hsSourceDirs . D.libBuildInfo) dLib of