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

getModificationTime on Windows should give a better error message #38

Closed
ndmitchell opened this issue Nov 3, 2015 · 2 comments
Closed
Labels
type: a-feature-request This is a request for a new feature.

Comments

@ndmitchell
Copy link

GHCi, version 7.10.2: http://www.haskell.org/ghc/  :? for help
Prelude> import System.Directory
Prelude> readFile "foo"
*** Exception: foo: openFile: does not exist (No such file or directory)
Prelude System.Directory> getModificationTime "foo"
*** Exception: getFileAttributesExStandard: does not exist (The system cannot find the file specified.)

Error message should mention the file you are trying to use.

@Rufflewind
Copy link
Member

This was fixed in 1.2.3.0, though I forgot to mention it in the changelogs.

GHC 7.10.2 comes with 1.2.2.0 IIRC.

@ndmitchell
Copy link
Author

Awesome!

Rufflewind added a commit to Rufflewind/directory that referenced this issue Nov 3, 2015
…ons"

as the changes made in commit 5f431e0
was not previously mentioned in the changelog.

See: haskell#38
Rufflewind added a commit to Rufflewind/directory that referenced this issue Nov 3, 2015
as the changes made in commit 5f431e0
were not previously mentioned in the changelog.

See: haskell#38
Rufflewind added a commit to Rufflewind/directory that referenced this issue Nov 3, 2015
as the changes made in commit 5f431e0
were not previously mentioned in the changelog.

See: haskell#38
@Rufflewind Rufflewind added the type: a-feature-request This is a request for a new feature. label Feb 20, 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

2 participants