Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
Empty stack trace since it does not help users.
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Jun 19, 2019
1 parent f780fed commit 9678fc1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ object Cli {
} match {
case Success(v) => v
case Failure(e: NoSuchFileException) =>
throw new IllegalArgumentException(
val exception = new IllegalArgumentException(
s"""Configuration file ${e.getFile} not found.
|Provide the file in reference to https://github.com/tanishiking/scalaunfmt#configuration""".stripMargin
Provide the file in reference to https://github.com/tanishiking/scalaunfmt#configuration""".stripMargin
)
exception.setStackTrace(Array.empty)
throw exception
case Failure(e) => throw e // unknown
}

Expand Down

0 comments on commit 9678fc1

Please sign in to comment.