Skip to content

Commit

Permalink
code check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gerashegalov committed Aug 5, 2019
1 parent 67187e1 commit 2585c72
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,9 @@ case object ModelSelectorSummary {
*/
private[selector] def evalMetFromJson(className: String, json: String): Try[EvaluationMetrics] = {
def error(c: Class[_], t: Throwable): Try[MultiMetrics] = Failure[MultiMetrics] {
new IllegalArgumentException(s"Could not extract metrics of type " +
s"${classOf[MultiMetrics]} from:\n$json", t)
new IllegalArgumentException(
s"""Could not extract metrics of type ${classOf[MultiMetrics]}
|from:$json""".stripMargin, t)
}
ReflectionUtils.classForName(className) match {
case n if n == classOf[MultiMetrics] =>
Expand Down

0 comments on commit 2585c72

Please sign in to comment.