Skip to content

Commit cb99ce6

Browse files
committed
fix: 🐛 abort when tar cmd excute fail
1 parent b4181be commit cb99ce6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ async fn backup(b: &Backup, s3_oprator: &Operator) -> Result<()> {
130130
}
131131
if !child.wait().await?.success() {
132132
tracing::error!("failed to compress");
133+
return Err(anyhow!("failed to compress"));
133134
};
134135

135136
// Calculate blake3 hash

0 commit comments

Comments
 (0)