-
Notifications
You must be signed in to change notification settings - Fork 50
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
flux_respond_error: accept an errnum of 0 #3036
Comments
I agree this is a problem area. It's easy to encounter an error and call Since RFC 3 requires the |
Problem: if flux_respond_error() is called with errnum of 0, no response is sent, which can cause hard to diagnose problems. Use EINVAL if errnum is zero. Fixes flux-framework#3036
Problem: if flux_respond_error() is called with errnum of 0, no response is sent, which can cause hard to diagnose problems. Use EINVAL if errnum is zero. Fixes flux-framework#3036
Problem: if flux_respond_error() is called with errnum of 0, no response is sent, which can cause hard to diagnose problems. Use EINVAL if errnum is zero. Fixes flux-framework#3036
Problem: if flux_respond_error() is called with errnum of 0, no response is sent, which can cause hard to diagnose problems. Use EINVAL if errnum is zero. Fixes flux-framework#3036
It was discussed on Slack that
flux_respond_error
considerserrnum
== 0 to be invalid and errors out withEINVAL
. From the man page:This was surprising to both @grondo and I. One suggestion was to allow an
errnum
of 0 forflux_respond_error
since we've been shifting to using descriptiveerrmsg
s anyways. Maybe we only allow anerrnum
of 0 when anerrmsg
is provided?The text was updated successfully, but these errors were encountered: