[rhythmbox] Actually print errors if we can't save the iPod DB
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rhythmbox] Actually print errors if we can't save the iPod DB
- Date: Wed, 19 Aug 2009 20:18:38 +0000 (UTC)
commit c67a04ba59052717d2dfb1801370a2805f9c9785
Author: Bastien Nocera <hadess hadess net>
Date: Wed Aug 19 20:36:48 2009 +0100
Actually print errors if we can't save the iPod DB
We should really fix the callers to use the error though...
plugins/ipod/rb-ipod-db.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/ipod/rb-ipod-db.c b/plugins/ipod/rb-ipod-db.c
index 8c9dc3c..7e23a05 100644
--- a/plugins/ipod/rb-ipod-db.c
+++ b/plugins/ipod/rb-ipod-db.c
@@ -124,9 +124,11 @@ static void
rb_itdb_save (RbIpodDb *ipod_db, GError **error)
{
RbIpodDbPrivate *priv = IPOD_DB_GET_PRIVATE (ipod_db);
+ GError *err = NULL;
- itdb_write (priv->itdb, error);
- if ((error != NULL) && (*error != NULL)) {
+ if (itdb_write (priv->itdb, &err) == FALSE) {
+ g_warning ("Could not write database to iPod: %s", err->message);
+ g_propagate_error (error, err);
return;
}
if (priv->needs_shuffle_db) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]