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

Throw surface errors in toBuffer #2410

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Conversation

mcfedr
Copy link
Contributor

@mcfedr mcfedr commented Jul 18, 2024

I noticed this when developing #2405

we can check cairo_surface_status for errors, which I've noticed happening when I was making tags incorrectly, but thought this is actually quite helpful, as overwise you just get en empty buffer, and have no idea why it happened.

  • Have you updated CHANGELOG.md?

Copy link
Collaborator

@chearon chearon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this has any other real-world usages other than the development scenario you mentioned, but seems reasonable.

CHANGELOG.md Outdated Show resolved Hide resolved
@mcfedr
Copy link
Contributor Author

mcfedr commented Sep 27, 2024

Not sure if this has any other real-world usages other than the development scenario you mentioned, but seems reasonable.

Yes, hopefully it isnt possible to do in normal usage, but getting an file with just a PDF header and nothing else was very confusing when it happened!

@chearon chearon merged commit a2e10e6 into Automattic:master Sep 27, 2024
6 checks passed
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.

2 participants