From 671a31a95ae94fd15975b3ef00d78f399c52a36e Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Wed, 18 Jul 2018 16:15:38 +0300 Subject: [PATCH] Player: Improver human-facing error message. --- hammond-gtk/src/widgets/player.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hammond-gtk/src/widgets/player.rs b/hammond-gtk/src/widgets/player.rs index e0228aa..586d9b6 100644 --- a/hammond-gtk/src/widgets/player.rs +++ b/hammond-gtk/src/widgets/player.rs @@ -293,9 +293,10 @@ impl PlayerWidget { s.player.connect_warning(move |_, warn| warn!("gst warning: {}", warn)); // Log gst errors. - s.player.connect_error(clone!(sender => move |_, error| { - // FIXME: should never occur and should not be user facing. - sender.send(Action::ErrorNotification(format!("Player Error: {}", error))); + s.player.connect_error(clone!(sender => move |_, _error| { + // sender.send(Action::ErrorNotification(format!("Player Error: {}", error))); + let s = "The media player was unable to execute an action.".into(); + sender.send(Action::ErrorNotification(s)); })); // The followign callbacks require `Send` but are handled by the gtk main loop