We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc49913 commit 2c1f2fbCopy full SHA for 2c1f2fb
common/src/main/kotlin/com/lambda/config/Configuration.kt
@@ -104,7 +104,10 @@ abstract class Configuration : Jsonable {
104
}
105
106
private fun load(file: File) {
107
- check(file.exists()) { "No configuration file found for ${configName.capitalize()}" }
+ if (!file.exists()) {
108
+ LOG.warn("No configuration file found for ${configName.capitalize()}. Creating new file when saving.")
109
+ return
110
+ }
111
112
loadFromJson(JsonParser.parseReader(file.reader()).asJsonObject)
113
0 commit comments