Slightly beeter logs
parent
adc14273d0
commit
78128bc63b
|
@ -40,7 +40,7 @@ public class ListBackupsCommand {
|
||||||
} else {
|
} else {
|
||||||
backups.sort(null);
|
backups.sort(null);
|
||||||
Iterator<RestoreHelper.RestoreableFile> iterator = backups.iterator();
|
Iterator<RestoreHelper.RestoreableFile> iterator = backups.iterator();
|
||||||
builder.append("Available backups: ");
|
builder.append("Available backups:\n");
|
||||||
|
|
||||||
builder.append(iterator.next());
|
builder.append(iterator.next());
|
||||||
|
|
||||||
|
|
|
@ -45,10 +45,10 @@ public abstract class AbstractCompressor {
|
||||||
.filter(File::isFile)
|
.filter(File::isFile)
|
||||||
.forEach(file -> {
|
.forEach(file -> {
|
||||||
try {
|
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);
|
addEntry(file, inputFile.toPath().relativize(file.toPath()).toString(), arc);
|
||||||
} catch (IOException e) {
|
} 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)
|
if (ctx.getInitiator() == ActionInitiator.Player)
|
||||||
Statics.LOGGER.sendError(ctx, "Something went wrong while compressing files!");
|
Statics.LOGGER.sendError(ctx, "Something went wrong while compressing files!");
|
||||||
|
|
Loading…
Reference in New Issue