#3864: Bad error message if $TMP does not exist
---------------------------------+------------------------------------------
Reporter: NeilMitchell | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.10.4 | Keywords:
Os: Windows | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
{{{
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.10.4
$ set TMP=c:\none
$ ghc --make Main.hs
CreateDirectory: does not exist (The system cannot find the path
specified.)
}}}
If the {{{%TMP%}}} environment variable is set to a directory that does
not exist, then GHC gives a very uninformative error message. I suggest
that {{{CreateDirectory}}} always give the name of the directory when it
fails, and that GHC traps this error and gives a better error.
Tracking this bug down took a while - I'd like to spare other users my
pain :-)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3864>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs