Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4b487ac authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Fail protologtool when we fail to transform a java file

Now that all the processing errors have been resolved, we can fail the tool when java file processing errors are detected.

Bug: 370425985
Flag: EXEMPT build tool changes
Test: m services.core.protologsrc wm_shell_protolog_src launcher-quickstep-processed-protolog-src adaptivehaptics.protologsrc
Change-Id: I2b8d76e5628a5282f03481c2462e7d880ad501b2
parent 34fa43e8
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -440,10 +440,7 @@ object ProtoLogTool {
                    println("CodeProcessingException " +
                            "(${index + 1}/${injector.processingErrors.size}): \n${it.message}\n")
                }
                // Do not fail the build if there are processing errors.
                // TODO (b/370425985): Set to 1 once the bug is fixed, so we fail the build if there
                //  are processing errors.
                exitProcess(0)
                exitProcess(1)
            }
        } catch (ex: InvalidCommandException) {
            println("InvalidCommandException: \n${ex.message}\n")