Skip to content

Commit

Permalink
fix msg
Browse files Browse the repository at this point in the history
  • Loading branch information
gatorsmile committed Oct 1, 2016
1 parent c71a03e commit ca45217
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class AnalysisException protected[sql] (
override def getMessage: String = {
val lineAnnotation = line.map(l => s" line $l").getOrElse("")
val positionAnnotation = startPosition.map(p => s" pos $p").getOrElse("")
s"$message;$lineAnnotation$positionAnnotation"
val planAnnotation = plan.map(p => s";\n$p").getOrElse("")
s"$message;$lineAnnotation$positionAnnotation$planAnnotation"
}
}

0 comments on commit ca45217

Please sign in to comment.