Skip to content

Commit d29f6f0

Browse files
authored
Merge pull request #1639 from jtpereyda/exception-handler-crash-fix
fix #1638
2 parents 19bc11c + 9450df8 commit d29f6f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/OpenAPIV3Parser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ private String getParseErrorMessage(String originalMessage, String location) {
206206
return String.format("Unable to parse `%s`", location);
207207
}
208208
if (originalMessage.startsWith("Duplicate field")) {
209-
return String.format(originalMessage + " in `%s`", location);
209+
return String.format("%s in `%s`", originalMessage, location);
210210
}
211211
return originalMessage;
212212
}

0 commit comments

Comments
 (0)