From f58c748f80331209a8dba20702f59594e9a6cddf Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 22 Aug 2024 03:23:27 +0200 Subject: [PATCH] Return dedicated error message if dbus session could not be opened (#22) * Return dedicated error message if dbus session could not be opened * cargo fmt --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 20cc4ad..ab1de2d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -119,7 +119,9 @@ async fn main() { error!("Unable to get Stardust project directories, default skybox and startup script will not work."); } - let dbus_connection = Connection::session().await.unwrap(); + let dbus_connection = Connection::session() + .await + .expect("Could not open dbus session"); dbus_connection .request_name("org.stardustxr.HMD") .await