Skip to content

fix(StdConfig): skip top-level values that are not tables - #936

Open
Iamsohungrynow wants to merge 1 commit into
foundry-rs:masterfrom
Iamsohungrynow:fix/config-skip-non-table-keys
Open

Iamsohungrynow wants to merge 1 commit into
foundry-rs:masterfrom
Iamsohungrynow:fix/config-skip-non-table-keys

Conversation

@Iamsohungrynow

Copy link
Copy Markdown

the constructor means to skip top-level keys that aren't tables, but a plain version = 1 makes vm.parseTomlKeys revert first, so the whole load fails with JSON value at "$.version" is not an object. wrapped it in a try/catch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant