mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 12:15:00 +00:00
configuration app returns non-zero value (2) if the configuration contains an error. Fixes #3031
This commit is contained in:
1 parent
c972edb81e
commit
37d548c7fa
2 files changed
+2
-1
No files matched your search
@@ -232,6 +232,7 @@ public class ConfigurationApp extends LombokApp {
|
||||
if (!problems.isEmpty()) {
|
||||
err.printf("Problems in the configuration files:%n");
|
||||
for (String problem : problems) err.printf("- %s%n", problem);
|
||||
return 2;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -70,7 +70,7 @@ public class TestConfiguration {
|
||||
|
||||
checkContent(directory, out, "out");
|
||||
checkContent(directory, err, "err");
|
||||
assertEquals(0, result);
|
||||
assertEquals(2, result);
|
||||
}
|
||||
|
||||
private void checkContent(File dir, String actual, String type) throws Exception {
|
||||
|
||||
Reference in new issue
Block a user