fix(app-shell): report a UI path that is not absolute

This commit is contained in:
Marco Allegretti 2026-10-09 10:29:32 +00:00
parent e2f9746fb5
commit fecf4c5b55
No known key found for this signature in database

View file

@ -674,7 +674,7 @@ pub fn run(
ui: &std::path::Path, ui: &std::path::Path,
) -> anyhow::Result<()> { ) -> anyhow::Result<()> {
let url = ServoUrl::from_file_path(ui) let url = ServoUrl::from_file_path(ui)
.map_err(|()| anyhow::anyhow!("{} is not an absolute path", ui.display()))?; .map_err(|_| anyhow::anyhow!("{} is not an absolute path", ui.display()))?;
tracing::info!(%app_id, %url, "showing application UI"); tracing::info!(%app_id, %url, "showing application UI");
let event_loop = EventLoop::<ServoWake>::with_user_event() let event_loop = EventLoop::<ServoWake>::with_user_event()