MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / path_claim_schema_error

Function path_claim_schema_error

atomic-core/src/pristine/path_claim.rs:215–228  ·  view source on GitHub ↗
(found: Option<u32>)

Source from the content-addressed store, hash-verified

213}
214
215pub(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
230pub(crate) fn tree_bijection_error(message: impl Into<String>) -> PristineError {
231 invalid_path_claim_data(format!(

Callers 2

Calls 1

invalid_path_claim_dataFunction · 0.85

Tested by

no test coverage detected