Kapt3, Minor: Flush logs before throwing parse error exception

This commit is contained in:
Yan Zhulanow
2016-12-07 00:27:14 +03:00
committed by Yan Zhulanow
parent c0b772a896
commit 40ef487129
@@ -64,6 +64,7 @@ fun KaptContext.doAnnotationProcessing(
val log = Log.instance(context)
if (compiler.shouldStop(CompileStates.CompileState.PARSE) || log.nerrors > 0) {
log.flush()
throw KaptError(KaptError.Kind.JAVA_FILE_PARSING_ERROR)
}