ruby: New exception Notmuch::UnbalancedAtomicError
[notmuch] / bindings / ruby / status.c
index 3d106ca9efd76e20ed5db88e50b4031918f01895..a2bd61a733622cf1bd33b6d134fb548177ffa4e9 100644 (file)
@@ -43,6 +43,8 @@ notmuch_rb_status_raise(notmuch_status_t status)
         rb_raise(notmuch_rb_eTagTooLongError, "tag too long");
     case NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW:
         rb_raise(notmuch_rb_eUnbalancedFreezeThawError, "unbalanced freeze/thaw");
+    case NOTMUCH_STATUS_UNBALANCED_ATOMIC:
+        rb_raise(notmuch_rb_eUnbalancedAtomicError, "unbalanced atomic");
     default:
         rb_raise(notmuch_rb_eBaseError, "unknown notmuch error");
     }