Skip to content

Commit 218dccd

Browse files
authored
not throwing ex when ignore file exists (#17501)
1 parent 8b5b5a7 commit 218dccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ private void generateOpenAPIGeneratorIgnoreFile() {
949949
LOGGER.info("Writing file " + ignoreFileNameTarget + " (which is always overwritten when the option `openapiGeneratorIgnoreFile` is enabled.)");
950950
new File(config.outputFolder()).mkdirs();
951951
if (!ignoreFile.createNewFile()) {
952-
throw new RuntimeException("Failed to create the file .openapi-generator-ignore: " + ignoreFileNameTarget);
952+
// file may already exist, do nothing
953953
}
954954

955955
String header = String.join("\n",

0 commit comments

Comments
 (0)