Apply suggestions from code review
Reworded the suggestions slightly
This commit is contained in:
parent
5cb3de37ad
commit
d375bb8417
@ -117,7 +117,7 @@ public final class Startup extends Application {
|
||||
logger.log(Level.INFO, "Saving local database and settings...");
|
||||
localDB.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) {
|
||||
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();
|
||||
|
||||
} 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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user