Skip to content
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

Handle Errors returns from geturlpart() in json function #318

Closed
wants to merge 2 commits into from

Conversation

jacobmealey
Copy link
Contributor

@jacobmealey jacobmealey commented Aug 11, 2024

This PR adds a trurl_warnf call in json() to have it handle bad return codes from geturlpart() where previously it was silently failing. this aligns the behavior of --get and --json. This silent error also meant trurl would attempt to print all params even if the call to geturlpart fails which is now fixed.

this pr sort of fixes #262. like I said above it aligns --get and --json so if there are control sequences in the input they will both return the same error unless you call it with --urlencode

@bagder bagder closed this in ae00a7a Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Components with control characters don't appear in --json output, and non-urlencoded --get fails
2 participants