Skip to content

Attach stack traces to library resolution errors#5079

Merged
snowleopard merged 1 commit intoocaml:mainfrom
snowleopard:use-needs-stack-trace-for-enabled-if
Nov 2, 2021
Merged

Attach stack traces to library resolution errors#5079
snowleopard merged 1 commit intoocaml:mainfrom
snowleopard:use-needs-stack-trace-for-enabled-if

Conversation

@snowleopard
Copy link
Copy Markdown
Collaborator

Thanks to #5075 and #5047, we can now easily provide more information for some library resolution errors. I think it's pretty helpful to tell the user why the problematic library was required. In fact, in one of the tests, this was suggested as a future improvement.

We could only do this for a subset of errors in this module, but after studying the new error messages, I think all of them got better.

@snowleopard snowleopard requested review from a user and rgrinberg November 2, 2021 17:23
Copy link
Copy Markdown

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Agreed, looks good!

Signed-off-by: Andrey Mokhov <amokhov@janestreet.com>
@snowleopard snowleopard force-pushed the use-needs-stack-trace-for-enabled-if branch from 308a4dc to 60a2828 Compare November 2, 2021 18:07
@snowleopard snowleopard merged commit b3089db into ocaml:main Nov 2, 2021
@snowleopard snowleopard deleted the use-needs-stack-trace-for-enabled-if branch November 2, 2021 18:08
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.

1 participant