Improve specificity of errors in validate-txexpr
#15
Merged
otherjoel
merged 2 commits from recursive-validate
into master
4 years ago
Loading…
Reference in New Issue
There is no content yet.
Delete Branch 'recursive-validate'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Makes
validate-texpr
recursive and tries to be as specific as possible about the problem:Also fixes cases where errors can sometimes be misleading; for example, in the current version:
In this version:
Thanks. I like this. Could you add a few tests however?
Test that a certain flaw raises the expected descriptive message.
Test that a certain flaw raises the same message regardless of where it appears (e.g., even deeply nested).
Would be possible or desirable to have a version of
validate-txexpr
(or a keyword option) that checks the whole txexpr for errors, and reports the list of errors at the end (as opposed to bailing out after the first error, which is the right behavior in most cases, but I can see the other kind being useful too)Would it make sense to replace the existing tests with these?
Add rather than replace, I think (to ensure that the upgrade doesn’t change the existing behavior))
Great thanks!
435c6e6f36
.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.