fix(cli): distinguish JadxCLI error code (PR #2734)

This commit is contained in:
Deleted user
2026-01-05 00:28:31 +08:00
committed by GitHub
parent 7bbb58863b
commit 8f727325d6
+2 -2
View File
@@ -71,7 +71,7 @@ public class JadxCLI {
try (JadxDecompiler jadx = new JadxDecompiler(jadxArgs)) {
jadx.load();
if (checkForErrors(jadx)) {
return 1;
return 2;
}
if (!SingleClassMode.process(jadx, cliArgs)) {
save(jadx);
@@ -80,7 +80,7 @@ public class JadxCLI {
if (errorsCount != 0) {
jadx.printErrorsReport();
LOG.error("finished with errors, count: {}", errorsCount);
return 1;
return 3;
}
LOG.info("done");
return 0;