servo/components/net
Integral 2b261b02bf
net: use log::error! to handle DevTools startup failures gracefully (#39320)
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>
2025-09-16 01:55:16 +00:00
..
fetch cargo: Bump rustc to 1.89 (#36818) 2025-08-19 11:07:53 +00:00
indexeddb indexeddb: Implement openCursor and openKeyCursor for object store (#39080) 2025-09-12 16:54:07 +00:00
protocols servoshell: Support runtime preference manipulation (#38159) 2025-08-30 16:51:58 +00:00
tests Enable the zstd decoder (#36530) 2025-09-10 14:58:45 +00:00
async_runtime.rs net: clean shutdown of the async runtime (#38425) 2025-08-04 21:42:47 +00:00
Cargo.toml Enable the zstd decoder (#36530) 2025-09-10 14:58:45 +00:00
connector.rs net: clean shutdown of the async runtime (#38425) 2025-08-04 21:42:47 +00:00
cookie.rs Update Nom to 8.0.0 (#38585) 2025-08-10 21:25:37 +00:00
cookie_storage.rs script: initial CookieStore implementation (#37968) 2025-08-21 01:00:24 +00:00
decoder.rs Enable the zstd decoder (#36530) 2025-09-10 14:58:45 +00:00
filemanager_thread.rs Removed FnvHash and transformed the rest to FxHashmap (#39233) 2025-09-10 13:34:54 +00:00
hosts.rs cargo: Bump rustc to 1.89 (#36818) 2025-08-19 11:07:53 +00:00
hsts.rs Replace hsts preload list hashmap with an FST (#37015) 2025-05-20 04:26:55 +00:00
http_cache.rs servoshell: Support runtime preference manipulation (#38159) 2025-08-30 16:51:58 +00:00
http_loader.rs net: use log::error! to handle DevTools startup failures gracefully (#39320) 2025-09-16 01:55:16 +00:00
image_cache.rs Removed FnvHash and transformed the rest to FxHashmap (#39233) 2025-09-10 13:34:54 +00:00
lib.rs Initial IndexedDB Support (#33044) 2025-06-19 05:19:07 +00:00
local_directory_listing.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
request_interceptor.rs EmbedderMsg: port reply channels to GenericChannel (#39018) 2025-08-29 12:44:21 +00:00
resource_thread.rs Replace Hash Algorithm in HashMap/Set with FxHashMap/Set for simple types (#39166) 2025-09-09 08:33:46 +00:00
storage_thread.rs Replace Hash Algorithm in HashMap/Set with FxHashMap/Set for simple types (#39166) 2025-09-09 08:33:46 +00:00
subresource_integrity.rs tidy: Add a rule ensuring that // comments are followed by a space in Rust (#38698) 2025-08-18 12:09:09 +00:00
websocket_loader.rs cargo: Bump rustc to 1.89 (#36818) 2025-08-19 11:07:53 +00:00