Skip to content

Commit

Permalink
chore: fix when config file is not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Oct 14, 2023
1 parent 1b8bfb8 commit beece11
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 @@ -134,7 +134,9 @@ async fn main() -> anyhow::Result<()> {
let config_path = std::path::Path::new(home.as_str())
.join(".config")
.join("xdg-desktop-portal-luminous");
async_watch(config_path, conn).await.unwrap()
if let Err(e) = async_watch(config_path, conn).await {
tracing::info!("Maybe file is not exist, error: {e}");
}
});

pending::<()>().await;
Expand Down

0 comments on commit beece11

Please sign in to comment.