-
Notifications
You must be signed in to change notification settings - Fork 1
fix: convert errors, return error from match_cmp_type #14
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
base: fix-type-conversion
Are you sure you want to change the base?
Conversation
ec08911 to
15a80a8
Compare
alrsorokin
left a comment
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.
пробегись по всему коду где ошибка кладется сначала в переменную
jsonpath.lua
Outdated
|
|
||
| return nil, 'no element matching expression' | ||
| local err = bad_request_error('no element matching expression') | ||
| return nil, err |
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.
return nil, bad_request_error('no element matching expression')
jsonpath.lua
Outdated
| if count ~= nil and type(count) ~= 'number' then | ||
| return nil, "invalid 'count' argument" | ||
| local err = bad_request_error("invalid 'count' argument") | ||
| return nil, err |
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.
return nil, bad_request_error("invalid 'count' argument")
jsonpath.lua
Outdated
| if expr == nil or (type(expr) ~= 'string' and type(expr) ~= 'table') then | ||
| return nil, "missing or invalid 'expr' argument" | ||
| local err = bad_request_error("missing or invalid 'expr' argument") | ||
| return nil, err |
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.
return nil, bad_request_error("missing or invalid 'expr' argument")d129e21 to
2bfbe45
Compare
15a80a8 to
2b47ca5
Compare
2b47ca5 to
d699f30
Compare
No description provided.