summaryrefslogtreecommitdiff
path: root/notmuch-new.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-01-07 10:19:44 -0800
committerCarl Worth <cworth@cworth.org>2010-01-07 10:19:44 -0800
commitf93b7218c3e2d11c5b3cdd4c367a42ca7a7ede77 (patch)
tree7d1cd35cb6e21d2c1dbf3bf79799fbeb35ae6422 /notmuch-new.c
parent6ed606c19edfe06d2dfd48854fc97f8502eaaf7c (diff)
lib: Consolidate checks for read-only database.
Previously, many checks were deep in the library just before a cast operation. These have now been replaced with internal errors and new checks have instead been added at the beginning of all top-levelentry points requiring a read-write database. The new checks now also use a single function for checking and printing the error message. This will give us a convenient location to extend the check, (such as based on database version as well).
Diffstat (limited to 'notmuch-new.c')
0 files changed, 0 insertions, 0 deletions