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)
| 53 | /// message text the local body composed. Encoded as JSON in the status |
| 54 | /// message so the client hook raises the identical CLI error. |
| 55 | fn 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. |
no test coverage detected