Commit 4c6fa93e authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Change an error message.

See #1488.
parent cefa15dd
......@@ -340,7 +340,8 @@ createPackageEnvironmentFile :: Verbosity -> FilePath -> FilePath
-> IO ()
createPackageEnvironmentFile verbosity sandboxDir pkgEnvFile incComments
compiler platform = do
notice verbosity $ "Writing a default package environment file to " ++ pkgEnvFile
notice verbosity $ "Writing a default package environment file to "
++ pkgEnvFile
commentPkgEnv <- commentPackageEnvironment sandboxDir
initialPkgEnv <- initialPackageEnvironment sandboxDir compiler platform
......@@ -437,9 +438,9 @@ parsePackageEnvironment initial str = do
return accum'
| otherwise =
syntaxError line $
"This file was probably generated by cabal-dev. "
++ "To use native cabal sandboxing, please delete '"
++ userPackageEnvironmentFile ++ "' and run 'cabal sandbox init'."
"Named 'install-dirs' section: '" ++ name
++ "'. Note that named 'install-dirs' sections are not allowed in the '"
++ userPackageEnvironmentFile ++ "' file."
where name' = lowercase name
parseSection _accum f =
syntaxError (lineNo f) "Unrecognized stanza."
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment