Skip to content

Commit c5eb6e1

Browse files
committed
Add warn message when fails to create example replacer config
1 parent 0853caa commit c5eb6e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/me/rothes/protocolstringreplacer/ProtocolStringReplacer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@ private void saveExampleReplacers() throws IOException {
339339
FileUtils.createFile(file);
340340
try (InputStream inputStream = getResource("Languages/" + line)) {
341341
Files.copy(inputStream, file.toPath(), StandardCopyOption.REPLACE_EXISTING);
342+
} catch (Throwable t) {
343+
warn("Failed to create example replacer config " + line + ": " + t);
342344
}
343345
}
344346
}

0 commit comments

Comments
 (0)