Classify InvalidLmdbOpenOptions as an Internal error

This commit is contained in:
ManyTheFish 2022-08-23 15:07:54 +02:00
parent aff4b64265
commit 5e206ee84b

View File

@ -24,6 +24,7 @@ impl ErrorCode for MilliError<'_> {
match error { match error {
// TODO: wait for spec for new error codes. // TODO: wait for spec for new error codes.
UserError::SerdeJson(_) UserError::SerdeJson(_)
| UserError::InvalidLmdbOpenOptions
| UserError::DocumentLimitReached | UserError::DocumentLimitReached
| UserError::AccessingSoftDeletedDocument { .. } | UserError::AccessingSoftDeletedDocument { .. }
| UserError::UnknownInternalDocumentId { .. } => Code::Internal, | UserError::UnknownInternalDocumentId { .. } => Code::Internal,