summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/operation
diff options
context:
space:
mode:
authorKeuin <[email protected]>2021-01-26 18:07:11 +0800
committerkeuin <[email protected]>2021-01-26 18:07:11 +0800
commita3b22bfe323c2cfa75d0bb83110ec59fb031cf86 (patch)
treeb2780ca54cee1c8e10403c13efe2575faa4a19ba /src/main/java/com/keuin/kbackupfabric/operation
parent08ac6aaea58b7309ea95a12ca6227a6ca3ce4db5 (diff)
BugFix: fixed malformed success message of incremental backup.v1.6.2
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/operation')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/operation/backup/feedback/IncrementalBackupFeedback.java2
-rw-r--r--src/main/java/com/keuin/kbackupfabric/operation/backup/feedback/PrimitiveBackupFeedback.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/operation/backup/feedback/IncrementalBackupFeedback.java b/src/main/java/com/keuin/kbackupfabric/operation/backup/feedback/IncrementalBackupFeedback.java
index 1a05c8c..bdd6d88 100644
--- a/src/main/java/com/keuin/kbackupfabric/operation/backup/feedback/IncrementalBackupFeedback.java
+++ b/src/main/java/com/keuin/kbackupfabric/operation/backup/feedback/IncrementalBackupFeedback.java
@@ -24,7 +24,7 @@ public class IncrementalBackupFeedback implements BackupFeedback {
@Override
public String getFeedback() {
if (success && copyResult != null)
- return String.format("File(s) added: %s.", copyResult);
+ return copyResult.toString();
else
return "Backup failed.";
}
diff --git a/src/main/java/com/keuin/kbackupfabric/operation/backup/feedback/PrimitiveBackupFeedback.java b/src/main/java/com/keuin/kbackupfabric/operation/backup/feedback/PrimitiveBackupFeedback.java
index e8844a2..094438c 100644
--- a/src/main/java/com/keuin/kbackupfabric/operation/backup/feedback/PrimitiveBackupFeedback.java
+++ b/src/main/java/com/keuin/kbackupfabric/operation/backup/feedback/PrimitiveBackupFeedback.java
@@ -23,7 +23,7 @@ public class PrimitiveBackupFeedback implements BackupFeedback {
@Override
public String getFeedback() {
if (success && backupSizeBytes >= 0)
- return String.format("File size: %s.", getFriendlyFileSizeString(backupSizeBytes));
+ return String.format("Backup file size: %s.", getFriendlyFileSizeString(backupSizeBytes));
else
return "";
}