Apply suggestions from code review
Reworded the suggestions slightly
This commit is contained in:
parent
dda9e8ee25
commit
549198f242
@ -117,7 +117,7 @@ public final class Startup extends Application {
|
|||||||
logger.log(Level.INFO, "Saving local database and settings...");
|
logger.log(Level.INFO, "Saving local database and settings...");
|
||||||
localDB.save();
|
localDB.save();
|
||||||
Settings.getInstance().save();
|
Settings.getInstance().save();
|
||||||
logger.log(Level.INFO, "Envoy was stopped as expected at " + new Date());
|
logger.log(Level.INFO, "Envoy was terminated by its user;
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
logger.log(Level.SEVERE, "Unable to save local files: ", e);
|
logger.log(Level.SEVERE, "Unable to save local files: ", e);
|
||||||
}
|
}
|
||||||
|
@ -292,7 +292,7 @@ public final class ChatScene {
|
|||||||
if (!localDB.getIDGenerator().hasNext() && client.isOnline()) client.requestIdGenerator();
|
if (!localDB.getIDGenerator().hasNext() && client.isOnline()) client.requestIdGenerator();
|
||||||
|
|
||||||
} catch (final IOException e) {
|
} catch (final IOException e) {
|
||||||
logger.log(Level.SEVERE, "Error sending message: ", e);
|
logger.log(Level.SEVERE, "Error while sending message: ", e);
|
||||||
new Alert(AlertType.ERROR, "An error occured while sending the message!").showAndWait();
|
new Alert(AlertType.ERROR, "An error occured while sending the message!").showAndWait();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user