From 93494e7e04e05beb4f07cfabdd14c674b97a12e5 Mon Sep 17 00:00:00 2001 From: Keuin Date: Mon, 25 Jan 2021 02:37:12 +0800 Subject: improve expressions --- .../java/com/keuin/kbackupfabric/operation/RestoreOperation.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main') 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 } } -- cgit v1.2.3