summaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorKeuin <[email protected]>2021-01-25 02:37:12 +0800
committerkeuin <[email protected]>2021-01-25 02:37:12 +0800
commit93494e7e04e05beb4f07cfabdd14c674b97a12e5 (patch)
tree22d8bb0d1976f7b23352f678afcfe88097c6176d /src/main/java/com
parent09e4e2f216d3c0587c1161696033615d3ff60cd6 (diff)
improve expressions
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/operation/RestoreOperation.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/operation/RestoreOperation.java b/src/main/java/com/keuin/kbackupfabric/operation/RestoreOperation.java
index ae4d879..e18f3c8 100644
--- a/src/main/java/com/keuin/kbackupfabric/operation/RestoreOperation.java
+++ b/src/main/java/com/keuin/kbackupfabric/operation/RestoreOperation.java
@@ -99,13 +99,13 @@ public class RestoreOperation extends InvokableBlockingOperation {
}
} catch (SecurityException e) {
- PrintUtil.error("An exception occurred while restoring: " + e.getMessage());
e.printStackTrace();
+ PrintUtil.error("An exception occurred while restoring.");
} catch (IOException e) {
- PrintUtil.error(e.toString());
- PrintUtil.error("Failed to restore due to an unhandled I/O exception.");
e.printStackTrace();
+ PrintUtil.error("Failed to restore due to an unexpected I/O exception.");
}
+ PrintUtil.error("Failed to restore.");
System.exit(0); // all failed restoration will eventually go here
}
}