From: Peter Wang Date: Wed, 16 Apr 2014 12:59:19 +0000 (+1000) Subject: go: add return status to database close method X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d81fc4b42de2687a06046d068fe391282b0b8b8f;p=notmuch.git go: add return status to database close method Add return status to the Database.Close() method that calls notmuch_database_destroy. --- diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go index 00bd53ac..b9230ad2 100644 --- a/bindings/go/src/notmuch/notmuch.go +++ b/bindings/go/src/notmuch/notmuch.go @@ -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.