Skip to content

Commit

Permalink
Return dedicated error message if dbus session could not be opened (#22)
Browse files Browse the repository at this point in the history
* Return dedicated error message if dbus session could not be opened

* cargo fmt
  • Loading branch information
6543 authored Aug 22, 2024
1 parent 499aa2b commit f58c748
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f58c748

Please sign in to comment.