mirror of https://github.com/sbt/sbt.git
Catch ClosedChannelException in TaskTraceEvent
sbt would print a stack trace on exit when run with -Dsbt.task.timings=true. This removes that annoying stack trace.
This commit is contained in:
parent
cd26abd656
commit
761c926944
|
|
@ -73,7 +73,8 @@ private[sbt] final class TaskTraceEvent
|
||||||
()
|
()
|
||||||
} finally {
|
} finally {
|
||||||
trace.close()
|
trace.close()
|
||||||
console.println(s"wrote $outFile")
|
try console.println(s"wrote $outFile")
|
||||||
|
catch { case _: java.nio.channels.ClosedChannelException => }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue