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

don't swallow stack traces on unchecked exception #306

Merged
merged 1 commit into from
Jun 25, 2022

Conversation

bjaglin
Copy link
Collaborator

@bjaglin bjaglin commented Jun 24, 2022

@bjaglin bjaglin force-pushed the dont-swallow-unchecked branch 2 times, most recently from d726607 to 1865001 Compare June 24, 2022 21:50
@@ -101,7 +101,9 @@ class ScalafixInterface private (

def rulesThatWillRun(): Seq[ScalafixRule] =
try scalafixArguments.rulesThatWillRun().asScala
catch { case NonFatal(e) => throw new InvalidArgument(e.getMessage) }
catch {
case e: ScalafixException => throw new InvalidArgument(e.getMessage)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@bjaglin bjaglin changed the title don't swallow strack traces on unchecked exception don't swallow stack traces on unchecked exception Jun 24, 2022
@bjaglin bjaglin marked this pull request as ready for review June 25, 2022 05:47
@bjaglin bjaglin merged commit 2243306 into main Jun 25, 2022
@bjaglin bjaglin deleted the dont-swallow-unchecked branch August 1, 2023 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant