[gnome-music] Show the error message if an error occurs
- From: Fabiano Fidêncio <ffidencio src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Show the error message if an error occurs
- Date: Mon, 27 May 2013 14:51:19 +0000 (UTC)
commit 25dcf4141083c0822c6ecec3eee2fceacb81e449
Author: Fabiano Fidêncio <fidencio redhat com>
Date: Mon May 27 16:47:12 2013 +0200
Show the error message if an error occurs
https://bugzilla.gnome.org/show_bug.cgi?id=701020
src/view.js | 2 ++
src/widgets.js | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/view.js b/src/view.js
index 62fec62..5a62618 100644
--- a/src/view.js
+++ b/src/view.js
@@ -188,6 +188,7 @@ const ViewContainer = new Lang.Class({
[toString(item.get_id()), "", item.get_title(), artist, this._symbolicIcon, item,
false, nowPlayingIconName]
);
} catch(err) {
+ log(err.message);
log("failed to discover url " + item.get_url());
this._model.set(
iter,
@@ -363,6 +364,7 @@ const Songs = new Lang.Class({
[item, false, nowPlayingIconName,false]
);
} catch(err) {
+ log(err.message);
log("failed to discover url " + item.get_url());
this._model.set(
iter,
diff --git a/src/widgets.js b/src/widgets.js
index f2b0c22..ce92498 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -242,6 +242,7 @@ const AlbumWidget = new Lang.Class({
[0, 1, 2, 3, 4, 5, 6, 7],
[ escapedTitle, "", "", "", pixbuf, track, false, nowPlayingIconName ]);
} catch(err) {
+ log(err.message);
log("failed to discover url " + track.get_url());
this.model.set(iter,
[0, 1, 2, 3, 4, 5, 6, 7],
@@ -553,6 +554,7 @@ const ArtistAlbumWidget = new Lang.Class({
songWidget.connect('button-release-event', Lang.bind(
this, this.trackSelected));
} catch(err) {
+ log(err.message);
log("failed to discover url " + track.get_url());
this.model.set(iter,
[0, 1, 2, 3, 4, 5],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]