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