aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
index e32f1d899..292c87836 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
@@ -63,12 +63,11 @@ class ConfigManager {
Features::class.java
)
logger.log("Loaded config from file")
- } catch (e: Exception) {
- println("config error")
- e.printStackTrace()
+ } catch (error: Exception) {
+ error.printStackTrace()
val backupFile = configFile!!.resolveSibling("config-${System.currentTimeMillis()}-backup.json")
logger.log("Exception while reading $configFile. Will load blank config and save backup to $backupFile")
- e.printStackTrace()
+ logger.log("Exception was $error")
try {
configFile!!.copyTo(backupFile)
} catch (e: Exception) {