feat: Use better log messages when handling exceptions

This commit is contained in:
oSumAtrIX
2023-10-31 14:28:21 +01:00
parent cd73bd39ce
commit 5896968358

View File

@@ -34,7 +34,7 @@ object Options {
val optionValue = try {
option.value
} catch (e: PatchOptionException) {
logger.severe(e.toString())
logger.warning("Using default option value for the ${patch.name} patch: ${e.message}")
option.default
}
@@ -80,7 +80,7 @@ object Options {
try {
patch.options[option] = value
} catch (e: PatchOptionException) {
logger.severe(e.toString())
logger.warning("Could not set option value for the ${patch.name} patch: ${e.message}")
}
}
}