-
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
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.
пробегись по всему коду где ошибка кладется сначала в переменную
|
|
||
| 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')| 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")| 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
No description provided.