mirror of
https://github.com/Xevion/time-banner.git
synced 2025-12-05 23:16:35 -06:00
Use RasterizeError for invalid extension in handle_rasterize
This commit is contained in:
@@ -30,7 +30,7 @@ fn handle_rasterize(data: String, extension: &str) -> Result<(&str, Bytes), Time
|
||||
|
||||
Ok(("image/x-png", Bytes::from(raw_image.unwrap())))
|
||||
}
|
||||
_ => Err(TimeBannerError::ParseError(format!("Unsupported extension: {}", extension)))
|
||||
_ => Err(TimeBannerError::RasterizeError(format!("Unsupported extension: {}", extension)))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user