]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/go/src/notmuch/notmuch.go
go: add return status to database close method
[notmuch] / bindings / go / src / notmuch / notmuch.go
index 00bd53acc3cab3f8866553ce4a3abe85a5ac6208..b9230ad2c3455852724b3ea6b3ed2287acb65ecb 100644 (file)
@@ -144,8 +144,8 @@ func OpenDatabase(path string, mode DatabaseMode) (*Database, Status) {
 
 /* Close the given notmuch database, freeing all associated
  * resources. See notmuch_database_open. */
-func (self *Database) Close() {
-       C.notmuch_database_destroy(self.db)
+func (self *Database) Close() Status {
+       return Status(C.notmuch_database_destroy(self.db))
 }
 
 /* Return the database path of the given database.