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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user