#1015, #1466, #1513 Better error messages during saving, display message on out of memory

This commit is contained in:
Jindra Petřík
2021-03-25 20:53:09 +01:00
parent f3176dc204
commit 941d0e0318
7 changed files with 66 additions and 10 deletions

View File

@@ -159,9 +159,8 @@ public abstract class MainFrameMenu implements MenuBuilder {
try {
Main.saveFile(swf, swf.getFile());
saved = true;
} catch (IOException ex) {
Logger.getLogger(MainFrameMenu.class.getName()).log(Level.SEVERE, null, ex);
View.showMessageDialog(null, translate("error.file.save"), translate("error"), JOptionPane.ERROR_MESSAGE);
} catch (Exception | OutOfMemoryError | StackOverflowError ex) {
Main.handleSaveError(ex);
}
}
if (saved) {