[rygel] core: handle database error gracefully
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: handle database error gracefully
- Date: Tue, 15 Sep 2009 13:52:21 +0000 (UTC)
commit b50797bc10962fc977e71163f8d321b212aedfaf
Author: Jens Georg <mail jensge org>
Date: Fri Sep 11 13:28:48 2009 +0200
core: handle database error gracefully
src/rygel/rygel-media-db-container.vala | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-media-db-container.vala b/src/rygel/rygel-media-db-container.vala
index 6ef8843..f080d2d 100644
--- a/src/rygel/rygel-media-db-container.vala
+++ b/src/rygel/rygel-media-db-container.vala
@@ -29,8 +29,9 @@ public class Rygel.MediaDBContainer : MediaContainer {
int count;
try {
count = media_db.get_child_count (id);
- } catch (MediaDBError err) {
- debug("Could not get child count from database: %s", err.message);
+ } catch (MediaDBError e) {
+ debug("Could not get child count from database: %s",
+ e.message);
count = 0;
}
base (id, null, title, count);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]