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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -832,9 +832,8 @@ public class DefaultGenerator implements Generator {
@Override @Override
public List<File> generate() { public List<File> generate() {
if (openAPI == null) { 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) { if (config == null) {