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

Function sync_error

libatomic/src/daemon/services_sync_remote.rs:55–66  ·  view source on GitHub ↗

The wire-encoded sync failure: which spinner stage failed, which CLI error shape the local body raised, the remote URL, and the exact message text the local body composed. Encoded as JSON in the status message so the client hook raises the identical CLI error.

(stage: &str, variant: &str, url: &str, message: String)

Source from the content-addressed store, hash-verified

53/// message text the local body composed. Encoded as JSON in the status
54/// message so the client hook raises the identical CLI error.
55fn sync_error(stage: &str, variant: &str, url: &str, message: String) -> Status {
56 domain_status(
57 ErrorCode::Remote,
58 json!({
59 "stage": stage,
60 "variant": variant,
61 "url": url,
62 "message": message,
63 })
64 .to_string(),
65 )
66}
67
68/// The local `convert_remote_error` mapping (push flavor), ported: it
69/// produces the (variant, message, url) the CLI raised.

Callers 5

parse_remote_manifestFunction · 0.85
push_changes_implFunction · 0.85
manifest_chain_from_packFunction · 0.85
manifest_from_packFunction · 0.85
pull_changes_implFunction · 0.85

Calls 1

domain_statusFunction · 0.85

Tested by

no test coverage detected