Skip to content

Commit 7dfd0fd

Browse files
committed
fix: fail build if with-topics failed
1 parent 081f2d2 commit 7dfd0fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/actions/packaging.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,10 @@ pub fn package_build<S: AsRef<str>, K: Clone + ExactSizeIterator<Item = S>>(
344344
cmd.push("--opt-in");
345345
cmd.push(topic);
346346
}
347-
let _ = run_in_container(instance, &cmd);
347+
let status = run_in_container(instance, &cmd)?;
348+
if status != 0 {
349+
return Err(anyhow!("Failed to add specific topics"));
350+
}
348351
}
349352

350353
if !conf.local_repo {

0 commit comments

Comments
 (0)