Skip to main content

potree_auth/potree_asset/http/
error.rs

1use super::super::application::error::PotreeAssetsServiceError;
2use crate::common::utils::http::api_error::ApiError;
3
4impl From<PotreeAssetsServiceError> for ApiError {
5    fn from(value: PotreeAssetsServiceError) -> Self {
6        match value {
7            PotreeAssetsServiceError::AssetNotFound { path } => Self::ResourceNotFound {
8                resource_name: path.to_string_lossy().to_string(),
9            },
10        }
11    }
12}