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

Use JSON_THROW_ON_ERROR instead of custom error handling #32628

Merged
merged 1 commit into from May 31, 2022

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented May 27, 2022

This way we can rely on json_encode for the actual error message, as there might be more than just malformed UTF8 characters and avoid to always dump the full response data into the logs.

Source of the recent report that this happened with text are addressed separately in nextcloud/text#2385

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliushaertl juliushaertl added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 30, 2022
@nickvergessen
Copy link
Member

Failure is also on master

@nickvergessen nickvergessen merged commit cf9660f into master May 31, 2022
@nickvergessen nickvergessen deleted the bugfix/noid/json-throw branch May 31, 2022 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants