mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
LibWeb: Fix ignored .to_string() errors in Web::dump_sheet()
This commit is contained in:
parent
0e3e9d9883
commit
e2db717bf5
3 changed files with 36 additions and 31 deletions
|
@ -221,7 +221,8 @@ void ConnectionFromClient::debug_request(DeprecatedString const& request, Deprec
|
|||
if (request == "dump-style-sheets") {
|
||||
if (auto* doc = page().top_level_browsing_context().active_document()) {
|
||||
for (auto& sheet : doc->style_sheets().sheets()) {
|
||||
Web::dump_sheet(sheet);
|
||||
if (auto result = Web::dump_sheet(sheet); result.is_error())
|
||||
dbgln("Failed to dump style sheets: {}", result.error());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue