Skip to content

Make the compile time parameter error clearer #358

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

viraptor
Copy link
Contributor

@viraptor viraptor commented Feb 2, 2021

Print out the expectation that the parameter should be under a specific key.

Print out the expectation that the parameter should be under a specific key.
@@ -23,7 +23,7 @@ def has_invalid_values?
end

def create_error
"#{@name} cannot contain empty parameters:#{@parameter.inspect}"
"#{@name} is not present inside the 'compile_time_parameters' entry, or has an empty value; found: #{@parameter.inspect}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should inform that it's a parameter that's missing. Can sort of infer it from the compile_time_parameters name, but better to be explicit.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants