Slightly beeter logs

This commit is contained in:
szymon 2021-06-17 22:17:55 +02:00
parent adc14273d0
commit 78128bc63b
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ public class ListBackupsCommand {
} else {
backups.sort(null);
Iterator<RestoreHelper.RestoreableFile> iterator = backups.iterator();
builder.append("Available backups: ");
builder.append("Available backups:\n");
builder.append(iterator.next());

View File

@ -45,10 +45,10 @@ public abstract class AbstractCompressor {
.filter(File::isFile)
.forEach(file -> {
try {
//hopefully bad broken file won't spoil the whole archive
//hopefully one broken file won't spoil the whole archive
addEntry(file, inputFile.toPath().relativize(file.toPath()).toString(), arc);
} catch (IOException e) {
Statics.LOGGER.error("An exception occurred while trying to compress: {}", file.getName(), e);
Statics.LOGGER.error("An exception occurred while trying to compress: {}", inputFile.toPath().relativize(file.toPath()).toString(), e);
if (ctx.getInitiator() == ActionInitiator.Player)
Statics.LOGGER.sendError(ctx, "Something went wrong while compressing files!");