Skip to content

Commit 89741c7

Browse files
authored
Merge pull request #3276 from zhenjun115/issue2499
add more tips about npe;
2 parents cc91231 + 4a71a4c commit 89741c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ private Model getParent(Model model) {
284284
allProcessedModels.put(name, models);
285285

286286
} catch (Exception e) {
287-
throw new RuntimeException("Could not process model '" + name + "'", e);
287+
throw new RuntimeException("Could not process model '" + name + "'" + ".Please make sure that your schema is correct!", e);
288288
}
289289
}
290290

0 commit comments

Comments
 (0)