-
Notifications
You must be signed in to change notification settings - Fork 966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#584 Add root config origin to exception #585
Conversation
Hi @Ensirius, Thank you for your contribution! We really value the time you've taken to put this together. Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement: |
@@ -153,7 +153,7 @@ static private AbstractConfigValue findKeyOrNull(AbstractConfigObject self, Stri | |||
ConfigValueType expected, Path originalPath) { | |||
AbstractConfigValue v = self.peekAssumingResolved(key, originalPath); | |||
if (v == null) | |||
throw new ConfigException.Missing(originalPath.render()); | |||
throw new ConfigException.Missing(self.origin(), originalPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'd rather keep the Path.render()
here instead of making Path
public. Otherwise the PR lgtm, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used Path
as argument because constructor with string argument ar used in Null
exception
CI needs to pass, though. probably there's a test failing? |
I got confused with constructors but i think I solved it now |
I have signed CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This change will improve config debuging process adding the root config line number