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

Method manifest_fetch_error

atomic-cli/src/commands/clone/command.rs:435–446  ·  view source on GitHub ↗

Convert a manifest-fetch failure into a CLI error. A protocol error means the server predates `?view-manifest` support. That is fatal: without manifests a clone cannot preserve view identity (scope and parent), so there is no fallback to the old flat changelist path.

(&self, err: RemoteError)

Source from the content-addressed store, hash-verified

433 /// identity (scope and parent), so there is no fallback to the old flat
434 /// changelist path.
435 fn manifest_fetch_error(&self, err: RemoteError) -> CliError {
436 if matches!(err, RemoteError::ProtocolError { .. }) {
437 CliError::RemoteError {
438 message: "This server is too old for identity-preserving clone: it does not \
439 support view manifests (?view-manifest). Upgrade the server."
440 .to_string(),
441 url: Some(self.url.clone()),
442 }
443 } else {
444 convert_remote_error(err, &self.url)
445 }
446 }
447
448 /// Fetch and validate one view's manifest from the remote.
449 ///

Calls 2

convert_remote_errorFunction · 0.70
cloneMethod · 0.45