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

Add missing output directory to error #3311

Merged
merged 3 commits into from
Apr 19, 2018

Conversation

rgrinberg
Copy link
Contributor

No description provided.

@LiamGoodacre
Copy link
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
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

@@ -167,7 +167,7 @@ findAvailableExterns :: (Ide m, MonadError IdeError m) => m [P.ModuleName]
findAvailableExterns = do
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
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
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
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