Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getCurrentDirectory should raise better error string when cwd doesn't exist #39

Closed
thomie opened this issue Jan 3, 2016 · 1 comment
Labels
type: a-feature-request This is a request for a new feature.

Comments

@thomie
Copy link
Contributor

thomie commented Jan 3, 2016

@ezyang reports in https://ghc.haskell.org/trac/ghc/ticket/11280:

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: ​haskell/cabal#2902

Rufflewind added a commit to Rufflewind/directory that referenced this issue Jan 3, 2016
@ezyang
Copy link

ezyang commented Jan 4, 2016

OK, this is not actually a bug with directory, and also there's been a commit which improves it in any case.

@ezyang ezyang closed this as completed Jan 4, 2016
Rufflewind added a commit to Rufflewind/directory that referenced this issue Feb 8, 2016
@Rufflewind Rufflewind added the type: a-feature-request This is a request for a new feature. label Apr 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: a-feature-request This is a request for a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants