Makes the internal soft deleted error a UserError

This commit is contained in:
Tamo
2022-07-04 14:59:11 +02:00
parent eaf28b0628
commit b61efd09fc
2 changed files with 3 additions and 3 deletions

View File

@ -959,7 +959,7 @@ impl Index {
for id in ids {
if soft_deleted_documents.contains(id) {
return Err(InternalError::AccessingSoftDeletedDocument { document_id: id })?;
return Err(UserError::AccessingSoftDeletedDocument { document_id: id })?;
}
let kv = self
.documents