diff options
author | Ian Lynagh <igloo@earth.li> | 2011-03-05 15:39:31 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-03-05 15:39:31 +0000 |
commit | fdcb0ced3ff1628edf8dac16adbbdf7b10ed9052 (patch) | |
tree | 0802242891bcb0b9ca59786d4213b22677314cc5 /utils/ghc-cabal | |
parent | d41c40efd3137286617798e6be2cfdb6a80ae2a6 (diff) | |
download | haskell-fdcb0ced3ff1628edf8dac16adbbdf7b10ed9052.tar.gz |
Fix build, and improve ghc-cabal's errors
Diffstat (limited to 'utils/ghc-cabal')
-rw-r--r-- | utils/ghc-cabal/Main.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/ghc-cabal/Main.hs b/utils/ghc-cabal/Main.hs index 0581f147ca..72a5010f80 100644 --- a/utils/ghc-cabal/Main.hs +++ b/utils/ghc-cabal/Main.hs @@ -393,13 +393,13 @@ generate config_args distdir directory escape = foldr (\c xs -> if c == '#' then '\\':'#':xs else c:xs) [] wrap = mapM wrap1 wrap1 s - | null s = die "Wrapping empty value" - | '\'' `elem` s = die "Single quote in value to be wrapped" + | null s = die ["Wrapping empty value"] + | '\'' `elem` s = die ["Single quote in value to be wrapped:", s] -- We want to be able to assume things like <space><quote> is the -- start of a value, so check there are no spaces in confusing -- positions - | head s == ' ' = die "Leading space in value to be wrapped" - | last s == ' ' = die "Trailing space in value to be wrapped" + | head s == ' ' = die ["Leading space in value to be wrapped:", s] + | last s == ' ' = die ["Trailing space in value to be wrapped:", s] | otherwise = return ("\'" ++ s ++ "\'") boolToYesNo True = "YES" boolToYesNo False = "NO" |