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

Print info message when ignoring a file due to a none cradle #2701

Merged
merged 2 commits into from
Feb 11, 2022
Merged

Print info message when ignoring a file due to a none cradle #2701

merged 2 commits into from
Feb 11, 2022

Conversation

ThomasCrevoisier
Copy link
Contributor

@ThomasCrevoisier ThomasCrevoisier commented Feb 10, 2022

👋 Out of curiosity, I was investigating #2692.

From the debug logs, the Left [] gives the impression that we failed but none cradles are correctly taken into account.

This is a small patch to makes things a bit explicit for the user.

@@ -619,11 +621,15 @@ cradleToOptsAndLibDir logger cradle file = do
CradleFail err -> return (Left [err])
-- For the None cradle perhaps we still want to report an Info
Copy link
Collaborator

Choose a reason for hiding this comment

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

Now you're doing it, so you could get rid of these comments?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure 👍 Fixed and squashed.

@michaelpj michaelpj merged commit ea1b41d into haskell:master Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants