aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-05-16 00:12:00 +1000
committerGitHub <noreply@github.com>2023-05-15 16:12:00 +0200
commit068cc5db57af16b25dd5115498ddf0e6f1fc2c80 (patch)
tree494870e13da911e2679f1c6597c597ab18ba3a66 /src/main/java/at/hannibal2/skyhanni/config
parent36752963503cc5657ddfb3e9318c78526d769bc4 (diff)
downloadskyhanni-068cc5db57af16b25dd5115498ddf0e6f1fc2c80.tar.gz
skyhanni-068cc5db57af16b25dd5115498ddf0e6f1fc2c80.tar.bz2
skyhanni-068cc5db57af16b25dd5115498ddf0e6f1fc2c80.zip
Various Fixes (#107)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-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) {