mirror of
https://github.com/servo/servo.git
synced 2025-09-18 19:08:22 +01:00
Replace the `unwrap()` call with `log::error!()` in the `send_request_to_devtools()` function to enhance error handling. --- Before: ``` ╰─❯ ./servo --devtools=1 [2025-09-15T14:35:07Z ERROR servoshell::desktop::app_state] Saw Servo error: DevtoolsFailedToStart! called `Result::unwrap()` on an `Err` value: "SendError(..)" (thread tokio-runtime-5, at components/net/http_loader.rs:435) [2025-09-15T14:35:07Z ERROR servoshell::panic_hook] called `Result::unwrap()` on an `Err` value: "SendError(..)" ``` After: ``` ╰─❯ ./servo --devtools=1 [2025-09-16T01:24:59Z ERROR servoshell::desktop::app_state] Saw Servo error: DevtoolsFailedToStart! [2025-09-16T01:24:59Z ERROR net::http_loader] DevTools send failed: sending on a disconnected channel [2025-09-16T01:24:59Z ERROR net::http_loader] DevTools send failed: sending on a disconnected channel ... ``` Signed-off-by: Integral <integral@member.fsf.org> |
||
---|---|---|
.. | ||
fetch | ||
indexeddb | ||
protocols | ||
tests | ||
async_runtime.rs | ||
Cargo.toml | ||
connector.rs | ||
cookie.rs | ||
cookie_storage.rs | ||
decoder.rs | ||
filemanager_thread.rs | ||
hosts.rs | ||
hsts.rs | ||
http_cache.rs | ||
http_loader.rs | ||
image_cache.rs | ||
lib.rs | ||
local_directory_listing.rs | ||
request_interceptor.rs | ||
resource_thread.rs | ||
storage_thread.rs | ||
subresource_integrity.rs | ||
websocket_loader.rs |