(found: Option<u32>)
| 213 | } |
| 214 | |
| 215 | pub(crate) fn path_claim_schema_error(found: Option<u32>) -> PristineError { |
| 216 | let message = match found { |
| 217 | Some(version) if version > PATH_CLAIM_SCHEMA_VERSION => format!( |
| 218 | "PATH_CLAIMS schema version {version} is newer than supported version {PATH_CLAIM_SCHEMA_VERSION}; use a compatible newer Atomic binary" |
| 219 | ), |
| 220 | Some(version) => format!( |
| 221 | "PATH_CLAIMS migration required (found schema version {version}; expected version {PATH_CLAIM_SCHEMA_VERSION}); reopen the repository writable and run the path-claim backfill before read-only or open-existing access" |
| 222 | ), |
| 223 | None => format!( |
| 224 | "PATH_CLAIMS migration required (missing schema completion marker; expected version {PATH_CLAIM_SCHEMA_VERSION}); reopen the repository writable and run the path-claim backfill before read-only or open-existing access" |
| 225 | ), |
| 226 | }; |
| 227 | invalid_path_claim_data(message) |
| 228 | } |
| 229 | |
| 230 | pub(crate) fn tree_bijection_error(message: impl Into<String>) -> PristineError { |
| 231 | invalid_path_claim_data(format!( |
no test coverage detected