Skip to content

Commit

Permalink
Rename e with cause to avoid duplicate names
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheolsoo Park committed Feb 25, 2015
1 parent 1e71d2d commit 2a919d5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -485,12 +485,12 @@ private[spark] class ApplicationMaster(
e.getCause match {
case _: InterruptedException =>
// Reporter thread can interrupt to stop user class
case e: Throwable =>
case cause: Throwable =>
finish(FinalApplicationStatus.FAILED,
ApplicationMaster.EXIT_EXCEPTION_USER_CLASS,
"User class threw exception: " + e.getMessage)
"User class threw exception: " + cause.getMessage)
// re-throw to get it logged
throw e
throw cause
}
}
}
Expand Down

0 comments on commit 2a919d5

Please sign in to comment.