[GHC] #11280: getCurrentDirectory should raise better error string when cwd doesn't exist

#11280: getCurrentDirectory should raise better error string when cwd doesn't exist -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: new Priority: low | Milestone: ⊥ Component: | Version: 7.11 libraries/directory | Keywords: easy | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Run this script in a directory which no longer exists: {{{ import System.Directory main = getCurrentDirectory >>= putStrLn }}} Currently the error looks like: {{{ ezyang@sabre:~/test$ ./test bash: ./test: No such file or directory }}} It would be nicer to give a better message in this case. Originally reported https://github.com/haskell/cabal/issues/2902 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11280 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11280: getCurrentDirectory should raise better error string when cwd doesn't exist -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: closed Priority: low | Milestone: ⊥ Component: | Version: 7.11 libraries/directory | Resolution: duplicate | Keywords: easy Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => duplicate Comment: Moved to the `directory` issue tracker: https://github.com/haskell/directory/issues/39 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11280#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC