Skip to content

Commit 4077aea

Browse files
committed
x11: add error context for opening XAUTHORITY
Signed-off-by: Val Packett <[email protected]>
1 parent ce466b7 commit 4077aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/muvm/src/guest/x11.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ where
2525

2626
if let Ok(xauthority) = std::env::var("XAUTHORITY") {
2727
let src_path = format!("/run/muvm-host/{xauthority}");
28-
let mut rdr = File::open(src_path)?;
28+
let mut rdr = File::open(src_path).context("Failed to open XAUTHORITY")?;
2929

3030
let dst_path = run_path.as_ref().join("xauth");
3131
let mut wtr = File::options()

0 commit comments

Comments
 (0)