Ticket #3864 (closed bug: fixed)
Bad error message if $TMP does not exist
| Reported by: | NeilMitchell | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 6.12.2 |
| Component: | Compiler | Version: | 6.10.4 |
| Keywords: | Cc: | ||
| Operating System: | Windows | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
$ 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 :-)
Change History
Note: See
TracTickets for help on using
tickets.
