revise invalid spec error message (#8735)

This commit is contained in:
William Cheng
2021-02-20 11:49:31 +08:00
committed by GitHub
parent 18a6f5a941
commit ee12a6f7ee

View File

@@ -832,9 +832,8 @@ public class DefaultGenerator implements Generator {
@Override
public List<File> generate() {
if (openAPI == null) {
throw new RuntimeException("missing OpenAPI input!");
throw new RuntimeException("Issues with the OpenAPI input. Possible causes: invalid/missing spec, malformed JSON/YAML files, etc.");
}
if (config == null) {