Update error message and add tests for incomplete compressed document

This commit is contained in:
karribalu 2024-06-25 18:36:29 +01:00
parent 2a38f5c757
commit 2608a596a0
2 changed files with 53 additions and 1 deletions

View file

@ -111,7 +111,7 @@ impl From<aweb::error::PayloadError> for MeilisearchHttpError {
#[derive(Debug, thiserror::Error)]
pub enum ActixPayloadError {
#[error("The provided payload is incomplete and cannot be decompressed")]
#[error("The provided payload is incomplete and cannot be parsed")]
IncompleteError,
#[error(transparent)]
OtherError(aweb::error::PayloadError),