mirror of https://github.com/sbt/sbt.git
Trap unnecessary launcher stack trace / invocation exception
This commit is contained in:
parent
84ce09ab43
commit
97bdd1f77d
|
|
@ -207,5 +207,9 @@ case class Launch(
|
|||
Helper.errPrintln(s"Launching")
|
||||
|
||||
Thread.currentThread().setContextClassLoader(loader)
|
||||
method.invoke(null, userArgs.toArray)
|
||||
try method.invoke(null, userArgs.toArray)
|
||||
catch {
|
||||
case e: java.lang.reflect.InvocationTargetException =>
|
||||
throw Option(e.getCause).getOrElse(e)
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue