A domain error, with a missing view said as such.
(error: RepositoryError)
| 96 | |
| 97 | /// A domain error, with a missing view said as such. |
| 98 | fn view_error(error: RepositoryError) -> Status { |
| 99 | match error { |
| 100 | RepositoryError::ViewNotFound { name } => { |
| 101 | domain_status(ErrorCode::NotFound, format!("no view '{name}'")) |
| 102 | } |
| 103 | other => repository_error(other), |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | /// The view a request names: `target`'s name, or `legacy` (the admin |
| 108 | /// requests' display-hint string). A `target.view_id` must agree with it. |
nothing calls this directly
no test coverage detected