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.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
index 647cb7ec1..5b095fa74 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
@@ -210,11 +210,11 @@ class ConfigManager {
}
logger.log("Loaded $fileName from file")
- } catch (error: Exception) {
- error.printStackTrace()
+ } catch (e: Exception) {
+ e.printStackTrace()
val backupFile = file.resolveSibling("$fileName-${System.currentTimeMillis()}-backup.json")
logger.log("Exception while reading $file. Will load blank $fileName and save backup to $backupFile")
- logger.log("Exception was $error")
+ logger.log("Exception was $e")
try {
file.copyTo(backupFile)
} catch (e: Exception) {