mirror of
https://github.com/lightbend/config.git
synced 2025-03-14 11:20:25 +08:00
Adds trace while allowing missing file by returing empty parse value
This commit is contained in:
parent
8f10c401a7
commit
3eedbed02d
@ -180,6 +180,8 @@ public abstract class Parseable implements ConfigParseable {
|
||||
return rawParseValue(origin, finalOptions);
|
||||
} catch (IOException e) {
|
||||
if (finalOptions.getAllowMissing()) {
|
||||
trace(e.getMessage() + ". Allowing Missing File, this can be turned off by setting" +
|
||||
" ConfigParseOptions.allowMissing = false");
|
||||
return SimpleConfigObject.emptyMissing(origin);
|
||||
} else {
|
||||
trace("exception loading " + origin.description() + ": " + e.getClass().getName()
|
||||
|
Loading…
Reference in New Issue
Block a user