Skip to content

setopt: provide info for CURLE_BAD_FUNCTION_ARGUMENT #17337

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

Closed
wants to merge 1 commit into from

Conversation

bagder
Copy link
Member

@bagder bagder commented May 13, 2025

If CURLE_BAD_FUNCTION_ARGUMENT is returned and failf() has not provided any details, this adds a generic error string that includes the option number.

This helps debugging for example the curl tool which does a lot of setopt calls and in reading post fact logs it is not always easy to tell exactly which call that failed.

Ref: #17330

If CURLE_BAD_FUNCTION_ARGUMENT is returned and failf() has not provided
any details, this adds a generic error string that includes the option
number.

This helps debugging for example the curl tool which does a lot of
setopt calls and in reading post fact logs it is not always easy to tell
exactly which call that failed.
@bagder
Copy link
Member Author

bagder commented May 13, 2025

Turns out 17330 is unaffected by this. Could still be useful for other cases.

@bagder bagder marked this pull request as ready for review May 13, 2025 10:08
@bagder bagder closed this in 0cce66b May 13, 2025
@bagder bagder deleted the bagder/setopt-failf branch May 13, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant