Skip to content

Commit

Permalink
Fix console outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev committed Oct 30, 2023
1 parent 1ea332c commit 1d77387
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/command/deployments/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ impl CreateArgs {
for err in errors {
println!("Error: {}", err.message);
}

return Ok(());
}

if let Some(data) = res.data {
Expand Down
2 changes: 1 addition & 1 deletion src/command/deployments/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl DeleteArgs {
}

if res.data.is_some() {
println!("Deployment success 🚀");
println!("Delete success 🚀");
}

Ok(())
Expand Down
4 changes: 3 additions & 1 deletion src/command/deployments/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ impl UpdateArgs {
for err in errors {
println!("Error: {}", err.message);
}

return Ok(());
}

if let Some(data) = res.data {
println!("Deployment success 🚀");
println!("Update success 🚀");
match data.update_deployment {
ToriiConfig(config) => {
println!("\nConfiguration:");
Expand Down

0 comments on commit 1d77387

Please sign in to comment.