Post.create now catching broader Exceptions
This commit is contained in:
@@ -64,7 +64,7 @@ public class Post {
|
||||
file.getParentFile().mkdirs();
|
||||
Files.writeString(file.toPath(),text, StandardCharsets.UTF_8);
|
||||
return post.save();
|
||||
} catch (MessagingException | IOException | SQLException e) {
|
||||
} catch (Exception e) {
|
||||
LOG.warn("Failed to create post from {}",message);
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user