-
Notifications
You must be signed in to change notification settings - Fork 142
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
Validate Func(Args) return value #27
base: develop
Are you sure you want to change the base?
Conversation
I was wondering what would be the best way of handling bad return values. Instead of matching a pair would it be better to just accept anything as a bad return value and generate an error. Dou you intend and Erlang or a Lua error? |
I think that erlang error is better, because problem is on erlang level. And I don't understand why don't you like this patch. I check return value and if is bad, I raise error. |
I don't dislike this patch, I was just wondering if it shouldn't be something like:
so it catches all error returns? |
so, maybe better:
? On Jul 21, 2013, at 12:43 AM, Robert Virding wrote:
|
f4d581d
to
192e2a0
Compare
4fdcb90
to
c439c82
Compare
76b3c9b
to
2124269
Compare
Need to validate return value from called function.