WebP: Log error if there is one
Else, WebP files with a broken header just return "Decoding failed" without any more details. This way, there's some debug logging with more details. Maybe we'll want to remove this again since it might lead to duplicate error messages for files that have their error not in the header. We'll see how this feels. (But most files don't have any errors, so it's probably fine.)
This commit is contained in:
parent
0c2fcffba3
commit
bf9e730566
Notes:
sideshowbarker
2024-07-16 23:34:49 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/bf9e730566 Pull-request: https://github.com/SerenityOS/serenity/pull/19294
1 changed files with 1 additions and 0 deletions
|
@ -630,6 +630,7 @@ WebPImageDecoderPlugin::~WebPImageDecoderPlugin() = default;
|
|||
bool WebPImageDecoderPlugin::set_error(ErrorOr<void> const& error_or)
|
||||
{
|
||||
if (error_or.is_error()) {
|
||||
dbgln("WebPLoadingContext error: {}", error_or.error());
|
||||
m_context->state = WebPLoadingContext::State::Error;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue