Skip to content

Conversation

dwijnand
Copy link
Member

@dwijnand dwijnand commented Mar 1, 2023

  • Change trytoShow's to not use raw string
  • Add an enrichedErrorMessage on Run, so to only handle the first exception

Some of the changes from #16685.

@dwijnand dwijnand marked this pull request as ready for review March 2, 2023 08:48
@dwijnand dwijnand requested a review from odersky March 2, 2023 08:48
@SethTisue
Copy link
Member

SethTisue commented Mar 2, 2023

This looks like a good core of uncontroversial (I think) yet highly beneficial changes to land.

Perhaps some of the rest of #16685 and/or #16593 could eventually land as separate followup PRs.

cc @robmwalsh

Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

Looks like a great improvement!

@odersky odersky assigned dwijnand and unassigned odersky Mar 6, 2023
Having a same-named enrichement will cause the original to be called
if/when explicit nulls is switched off - which leads to the original
method to be called, meaning an NPE will be thrown.

So, instead, move all the functionality as an extension method, so we
don't need mangled names.
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.

4 participants