1
Fork 0
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:
MacDue 2023-01-13 20:10:00 +01:00 committed by Linus Groh
parent 0e3e9d9883
commit e2db717bf5
3 changed files with 36 additions and 31 deletions

View file

@ -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());
}
}
}