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

Added support of optional ignoring of errors to function calls #652

Merged
merged 4 commits into from Sep 7, 2021

Conversation

ziflex
Copy link
Member

@ziflex ziflex commented Sep 6, 2021

This feature introduces a new capability to suppress/ignore errors caused by an invoked function.

For instance, the following query will always return a result even if a called function returns an error:

LET found = ELEMENT(doc, "#submit")?

RETURN found != NONE

New ? symbol at the end of any function call indicates that error must be suppressed and None value returned instead.

@codecov
Copy link

codecov bot commented Sep 6, 2021

Codecov Report

Merging #652 (3fc8c92) into master (0cb7623) will increase coverage by 0.0%.
The diff coverage is 56.0%.

@@          Coverage Diff           @@
##           master    #652   +/-   ##
======================================
  Coverage    35.4%   35.4%           
======================================
  Files         335     335           
  Lines       12230   12249   +19     
======================================
+ Hits         4326    4338   +12     
- Misses       7486    7493    +7     
  Partials      418     418           

@ziflex ziflex merged commit 5f361e9 into master Sep 7, 2021
@ziflex ziflex deleted the feature/function-error-negate branch September 10, 2021 01:31
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.

None yet

1 participant