Skip to content

Conversation

wu0607
Copy link

@wu0607 wu0607 commented May 3, 2025

Motivation

Improve the error message for the above scenario to indicates which field leads to exception.
If parent config is None, we can not set child column.
Example:

  • checkpoint_eval: null
  • override from buck cmd that checkpoint_eval.smc_tier="test_hydra" This introduces exception

the error message was Unexpected type for root: NoneType. with this PR the error message becomes Unexpected type for root: NoneType. We cannot set 'smc_tier' to 'test_hydra' when root is None. Please make sure the config value of ['checkpoint_eval', 'smc_tier'] is valid.

Test Plan

Internal testing at Meta

@wu0607 wu0607 changed the title [Error Actionability] Improve Hydra config error when root type is None [Error Actionability] Improve Omegaconf config error when root type is None May 3, 2025
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