diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-09-10 23:55:41 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-09-10 23:55:41 -0600 |
commit | eb556c1ce6ed52e2a71743a088860ac0e0df3e89 (patch) | |
tree | d6f6c7efb3a338a75d64b9c30a8774d19f702cc9 /components/layout/layout_task.rs | |
parent | f190ba360e41465d43972826b6715eb39e7b9822 (diff) | |
parent | b7ea7de13684c4cf7bd6cb6216a5f21d65df6ce5 (diff) | |
download | servo-eb556c1ce6ed52e2a71743a088860ac0e0df3e89.tar.gz servo-eb556c1ce6ed52e2a71743a088860ac0e0df3e89.zip |
Auto merge of #7602 - bjwbell:improve_err_msg_when_writing_png, r=pcwalton
Improve err msg when failing to output png
Before on at least Linux the following failure is hard to root cause:
[~/servo] ./target/debug/servo -o tmp.png ./tests/html/lipsum.html
thread '<main>' panicked at 'assertion failed: res.is_ok()', .../compositor.rs:1508
thread '<main>' panicked at 'You should have disposed of the
pixmap...', .../rust-layers/.../surface.rs:166
Now:
[~/servo] ./target/debug/servo -o tmp.png ./tests/html/lipsum.html
thread '<main>' panicked at 'Error writing png: Permission
denied (os error 13)', .../compositor.rs:1508
thread '<main>' panicked at 'You should have disposed of the pixmap
properly with destroy()! This pixmap will leak!', .../rust-layers/.../surface.rs:166
r? @mbrubeck
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7602)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/layout_task.rs')
0 files changed, 0 insertions, 0 deletions