diff --git a/src/processors/liquid_rescale_processor.rs b/src/processors/liquid_rescale_processor.rs index f64fa79..f4b7bd7 100644 --- a/src/processors/liquid_rescale_processor.rs +++ b/src/processors/liquid_rescale_processor.rs @@ -7,15 +7,12 @@ use crate::utilities::{ pub async fn liquid_rescale_processor(multipart: Multipart) -> Result, AppError> { let image = parse_image(multipart).await.map_err(|err| { - error!("Error parse image: {:?}", err); - AppError::new( - StatusCode::INTERNAL_SERVER_ERROR, - "There was a error parse your image", - ) + error!("Error in the multipart data parsing: {:?}", err); + AppError::new(StatusCode::INTERNAL_SERVER_ERROR, "Missing file field") })?; let image_data = liquid_rescale_image(&image).map_err(|err| { - error!("Imagemagick parse image error: {:?}", err); + error!("Imagemagick error: {:?}", err); AppError::new( StatusCode::INTERNAL_SERVER_ERROR, "There was a error read your image",