[rygel/wip/lms-tizen: 383/384] lms: fix database error code issue



commit 166ee27cf47b2d1500fe7e2c8983feb5882465a3
Author: Alexander Kanavin <alex kanavin gmail com>
Date:   Tue Jan 13 14:40:45 2015 +0200

    lms: fix database error code issue

 src/plugins/lms/rygel-lms-database.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/lms/rygel-lms-database.vala b/src/plugins/lms/rygel-lms-database.vala
index 53eb218..e898d66 100644
--- a/src/plugins/lms/rygel-lms-database.vala
+++ b/src/plugins/lms/rygel-lms-database.vala
@@ -107,7 +107,7 @@ public class Rygel.LMS.Database {
         if (this.db.errcode () != Sqlite.OK) {
             throw new DatabaseError.OPEN ("Failed to open '%s': %d",
                                           db_path,
-                                          this.db.errcode);
+                                          this.db.errcode () );
         }
 
         this.db.create_function ("contains",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]