Skip to content

Commit 4e08ccf

Browse files
committed
chore(display): better error messages
1 parent 92085b6 commit 4e08ccf

File tree

1 file changed

+2
-2
lines changed
  • cosmic-settings/src/pages/display

1 file changed

+2
-2
lines changed

cosmic-settings/src/pages/display/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ impl Page {
490490
match message {
491491
Message::RandrResult(result) => {
492492
if let Some(Err(why)) = Arc::into_inner(result) {
493-
tracing::error!(?why, "cosmic-randr error");
493+
tracing::error!(why = why.to_string(), "cosmic-randr error");
494494
}
495495
}
496496

@@ -608,7 +608,7 @@ impl Page {
608608
}
609609

610610
Some(Err(why)) => {
611-
tracing::error!(?why, "error fetching displays");
611+
tracing::error!(why = why.to_string(), "error fetching displays");
612612
}
613613

614614
None => (),

0 commit comments

Comments
 (0)