Skip to content
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

Don't report incorrect line from jinja exception #13416

Merged
merged 1 commit into from
Jun 12, 2014

Conversation

terminalmage
Copy link
Contributor

Jinja reports the wrong line for UndefinedError exceptions, which
results in a misleading comment in the state result. This commit removes
the line number and context string from the comment, leaving just the
error message telling the user which variable is undefined.

Resolves #13408.

Verified

This commit was signed with the committer’s verified signature.
minrk Min RK
Jinja reports the wrong line for UndefinedError exceptions, which
results in a misleading comment in the state result. This commit removes
the line number and context string from the comment, leaving just the
error message telling the user which variable is undefined.
@ghost
Copy link

ghost commented Jun 12, 2014

Test Failed.

If the failures are unrelated to your code, don't stress, a core developer will know these apart.
In the future, if possible, please branch off a passing commit to avoid false positives.
Refer to this link for build results: http://jenkins.saltstack.com/job/salt-pr-build/5069/

thatch45 added a commit that referenced this pull request Jun 12, 2014

Verified

This commit was signed with the committer’s verified signature.
minrk Min RK
Don't report incorrect line from jinja exception
@thatch45 thatch45 merged commit 6c2acd3 into saltstack:develop Jun 12, 2014
@thatch45
Copy link
Contributor

Blast! @terminalmage I should not have merged this, it is breaking tests:
http://jenkins.saltstack.com/job/salt-pr-rs-ubuntu12.04/4229/
Please take a look at the unicode ones

@terminalmage
Copy link
Contributor Author

Yeah, I should have thought of the tests. I'll take care of them.

@terminalmage terminalmage deleted the issue13408 branch July 19, 2014 23:58
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.

jinja renderer error reporting not fixed
2 participants