fix: use {:?} for souvlaki MediaControlError formatting

MediaControlError doesn't impl Display on all platforms. Using {}
would fail to compile on non-Linux targets. Use {:?} (Debug) instead.

Cherry-picked from PR #181 by @afonsojramos.

cc
This commit is contained in:
vicrodh committed 2026-03-19 14:42:12 -06:00
1 parent 026dd0a53a
commit 6261f312be
1 file changed
+3 -3
+3 -3
View File
@@ -67,7 +67,7 @@ impl MediaControlsManager {
let _ = app_handle.emit("media:control", &payload);
}) {
log::error!("Failed to attach media controls handler: {}", e);
log::error!("Failed to attach media controls handler: {:?}", e);
return;
}
@@ -79,7 +79,7 @@ impl MediaControlsManager {
}
Err(e) => {
log::warn!(
"Failed to initialize media controls: {}. Media keys won't work.",
"Failed to initialize media controls: {:?}. Media keys won't work.",
e
);
}
@@ -102,7 +102,7 @@ impl MediaControlsManager {
};
if let Err(e) = controls.set_metadata(metadata) {
log::debug!("Failed to set media metadata: {}", e);
log::debug!("Failed to set media metadata: {:?}", e);
}
}
}