Various improvements (#653)

* improve validation error message

* minor improvement to qt5 c++ server

* fix invalid spec (causing shippable failure)

* Revert "minor improvement to qt5 c++ server"

This reverts commit 56f356cc51.
This commit is contained in:
William Cheng
2018-07-26 23:10:15 +08:00
committed by GitHub
parent 7624a1ff85
commit 7e494e52ab
2 changed files with 5 additions and 2 deletions

View File

@@ -535,7 +535,10 @@ public class CodegenConfigurator implements Serializable {
}
if (this.isValidateSpec()) {
SpecValidationException ex = new SpecValidationException("Specification has failed validation.");
StringBuilder sb = new StringBuilder();
sb.append("There were issues with the specification. The option can be disabled by passing false to skipValidateSpec (Maven/Gradle) or --skip-validate-spec (CLI).");
sb.append(System.lineSeparator());
SpecValidationException ex = new SpecValidationException(sb.toString());
ex.setErrors(validationMessages);
ex.setWarnings(warnings);
throw ex;