Presentation compiler: let ShutdownReq propagate from the background compiler, and don't mark a unit as crashed in that case.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25817 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
dragos 2011-10-11 09:58:13 +00:00
parent bf8355121b
commit 9ab5f67183
1 changed files with 2 additions and 1 deletions

View File

@ -469,7 +469,8 @@ class Global(settings: Settings, reporter: Reporter, projectName: String = "")
r set unit.body
serviceParsedEntered()
} catch {
case ex: FreshRunReq => throw ex // propagate a new run request
case ex: FreshRunReq => throw ex // propagate a new run request
case ShutdownReq => throw ShutdownReq // propagate a shutdown request
case ex =>
println("[%s]: exception during background compile: ".format(unit.source) + ex)