Kapt3, Minor: Flush logs before throwing parse error exception
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user