[BSP] add handle for cancelled compilation

This commit is contained in:
Adrien Piquerez 2021-06-24 16:43:50 +02:00
parent f0efbf0f5d
commit f58c8c349a
1 changed files with 3 additions and 2 deletions

View File

@ -509,8 +509,9 @@ object BuildServerProtocol {
case Value(_) => StatusCode.Success
case Inc(cause) =>
cause.getCause match {
case _: CompileFailed => StatusCode.Error
case err => throw cause
case _: CompileFailed => StatusCode.Error
case _: InterruptedException => StatusCode.Cancelled
case err => throw cause
}
}
}