{"record":{"id":"2c716c7717b267a9","repo":"nikivdev/code","slug":"rsync-failed","errorCode":null,"errorMessage":"rsync failed","messagePattern":"rsync failed","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/deploy.rs","lineNumber":1903,"sourceCode":"            \"--delete\",\n            \"--exclude=target/\",\n            \"--exclude=.git/\",\n            \"--exclude=node_modules/\",\n            \"--exclude=.env\",\n            \"--exclude=*.log\",\n            \"-e\",\n            &ssh_cmd,\n            &format!(\"{}/\", local.display()),\n            &remote,\n        ])\n        .stdin(Stdio::inherit())\n        .stdout(Stdio::inherit())\n        .stderr(Stdio::inherit())\n        .status()\n        .context(\"Failed to run rsync\")?;\n\n    if !status.success() {\n        bail!(\"rsync failed\");\n    }\n    Ok(())\n}\n\n/// Copy file via scp.\nfn scp_file(local: &Path, conn: &HostConnection, remote: &str) -> Result<()> {\n    let dest = format!(\"{}:{}\", conn.ssh_target(), remote);\n    let status = Command::new(\"scp\")\n        .args([\n            \"-P\",\n            &conn.port.to_string(),\n            &local.display().to_string(),\n            &dest,\n        ])\n        .status()\n        .context(\"Failed to run scp\")?;\n\n    if !status.success() {","sourceCodeStart":1885,"sourceCodeEnd":1921,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/deploy.rs#L1885-L1921","documentation":"Error \"rsync failed\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/deploy.rs:1903 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a747e741ae92c09071d0ae946ab48488adcff1ce","analyzedAt":"2026-09-01T22:43:55.719Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}