Skip to content

Commit 9d892a5

Browse files
authored
Merge pull request #229 from kate-goldenring/print-selective-deployment-errors
Print selective deployment error to container stdio
2 parents cc5e6fa + 9176075 commit 9d892a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

containerd-shim-spin/src/engine.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ impl SpinEngine {
145145
.ok()
146146
.map(|s| s.split(',').map(|s| s.to_string()).collect::<Vec<String>>());
147147
if let Some(components) = components_to_execute {
148-
crate::retain::retain_components(&mut locked_app, &components)?;
148+
if let Err(e) = crate::retain::retain_components(&mut locked_app, &components) {
149+
println!("Error with selective deployment: {:?}", e);
150+
return Err(e);
151+
}
149152
}
150153
configure_application_variables_from_environment_variables(&locked_app)?;
151154
let trigger_cmds = get_supported_triggers(&locked_app)

0 commit comments

Comments
 (0)