lms: fix database error code issue upstream
authorAlexander Kanavin <alex.kanavin@gmail.com>
Tue, 13 Jan 2015 12:40:45 +0000 (14:40 +0200)
committerAlexander Kanavin <alex.kanavin@gmail.com>
Tue, 13 Jan 2015 12:40:45 +0000 (14:40 +0200)
src/plugins/lms/rygel-lms-database.vala

index 53eb218..e898d66 100644 (file)
@@ -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",