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
This commit was merged in pull request #22.
This commit is contained in:
6543
2024-08-22 03:23:27 +02:00
committed by GitHub
parent 499aa2be28
commit f58c748f80

View File

@@ -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