Apply suggestions from code review

Reworded the suggestions slightly
This commit is contained in:
delvh 2020-06-20 22:29:32 +02:00 committed by GitHub
parent dda9e8ee25
commit 549198f242
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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();
}