Skip to content

Commit

Permalink
add missing error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
vhdirk committed Oct 16, 2021
1 parent 2231a5c commit 59396a3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "notmuch"
version = "0.6.0"
version = "0.6.1"
authors = ["Dirk Van Haerenborgh <vhdirk@gmail.com>"]
homepage = "https://github.com/vhdirk/notmuch-rs"
repository = "https://github.com/vhdirk/notmuch-rs"
Expand Down
9 changes: 9 additions & 0 deletions src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ notmuch_enum! {
NOTMUCH_STATUS_UNBALANCED_ATOMIC => UnbalancedAtomic,
NOTMUCH_STATUS_UNSUPPORTED_OPERATION => UnsupportedOperation,
NOTMUCH_STATUS_UPGRADE_REQUIRED => UpgradeRequired,
NOTMUCH_STATUS_PATH_ERROR => PathError,
NOTMUCH_STATUS_IGNORED => Ignored,
NOTMUCH_STATUS_ILLEGAL_ARGUMENT => IllegalArgument,
NOTMUCH_STATUS_MALFORMED_CRYPTO_PROTOCOL => MalformedCryptoProtocol,
NOTMUCH_STATUS_FAILED_CRYPTO_CONTEXT_CREATION => FailedCryptoContextCreation,
NOTMUCH_STATUS_UNKNOWN_CRYPTO_PROTOCOL => UnknownCryptoProtocol,
NOTMUCH_STATUS_NO_CONFIG => NoConfig,
NOTMUCH_STATUS_NO_DATABASE => NoDatabase,
NOTMUCH_STATUS_DATABASE_EXISTS => DatabaseExists,
// Not an actual status value. Just a way to find out how many
// valid status values there are.
NOTMUCH_STATUS_LAST_STATUS => LastStatus
Expand Down

0 comments on commit 59396a3

Please sign in to comment.