Skip to content

Add missing output directory to error#3311

Merged
kritzcreek merged 3 commits intopurescript:masterfrom
rgrinberg:add-output-dir-path
Apr 19, 2018
Merged

Add missing output directory to error#3311
kritzcreek merged 3 commits intopurescript:masterfrom
rgrinberg:add-output-dir-path

Conversation

@rgrinberg
Copy link
Copy Markdown
Contributor

No description provided.

@LiamGoodacre
Copy link
Copy Markdown
Member

Please add yourself to the CONTRIBUTORS.md file.
Don't worry about the failing CI - we're currently in a transition period for the next compiler release.
Thanks!

Copy link
Copy Markdown
Member

@kritzcreek kritzcreek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, just a few comments

oDir <- outputDirectory
unlessM (liftIO (doesDirectoryExist oDir))
(throwError (GeneralError "Couldn't locate your output directory."))
(throwError (GeneralError $ "Couldn't locate your output directory: " <> (toS oDir) <> "."))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think of Couldn't locate your output directory at: ...? Makes it a little clearer that we went searching for it.

Could we run the path through System.FilePath.normalise and use an explicit T.pack over toS? I also think we should leave off the trailing . since it'll be in the way when copy pasting the path.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

@kritzcreek
Copy link
Copy Markdown
Member

Great, thanks!

@kritzcreek kritzcreek merged commit 263b3cc into purescript:master Apr 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants