Less spammy move error

This commit is contained in:
mbax
2021-01-31 22:55:40 -05:00
parent a57413f011
commit c0dfd8b699
@@ -324,7 +324,7 @@ public class PlayerVaults extends JavaPlugin {
try { try {
Files.move(configYaml.toPath(), this.getDataFolder().toPath().resolve("old_unused_config.yml")); Files.move(configYaml.toPath(), this.getDataFolder().toPath().resolve("old_unused_config.yml"));
} catch (Exception e) { } catch (Exception e) {
this.getLogger().log(Level.SEVERE, "Failed to move config for backup", e); this.getLogger().log(Level.SEVERE, "Failed to move config for backup: " + e.getMessage());
configYaml.deleteOnExit(); configYaml.deleteOnExit();
} }
} }
@@ -354,7 +354,7 @@ public class PlayerVaults extends JavaPlugin {
try { try {
Files.move(lang.toPath(), lang.getParentFile().toPath().resolve("old_unused_lang")); Files.move(lang.toPath(), lang.getParentFile().toPath().resolve("old_unused_lang"));
} catch (Exception e) { } catch (Exception e) {
this.getLogger().log(Level.SEVERE, "Failed to rename lang folder as it is no longer used", e); this.getLogger().log(Level.SEVERE, "Failed to rename lang folder as it is no longer used: " + e.getMessage());
configYaml.deleteOnExit(); configYaml.deleteOnExit();
} }
} }