Skip to content

Commit 37dcb77

Browse files
committed
fix: [#260] correct failed state guidance to recommend destroy instead of retry
1 parent 0dafeec commit 37dcb77

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/presentation/views/commands/show/environment_info.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@ impl EnvironmentInfoView {
165165
"Environment has been destroyed. Create a new environment to redeploy.".to_string()
166166
}
167167
"provision_failed" => {
168-
"Provisioning failed. Check error details and retry 'provision'.".to_string()
168+
"Provisioning failed. Run 'destroy' and create a new environment.".to_string()
169169
}
170170
"configure_failed" => {
171-
"Configuration failed. Check error details and retry 'configure'.".to_string()
171+
"Configuration failed. Run 'destroy' and create a new environment.".to_string()
172172
}
173173
"release_failed" => {
174-
"Release failed. Check error details and retry 'release'.".to_string()
174+
"Release failed. Run 'destroy' and create a new environment.".to_string()
175175
}
176-
"run_failed" => "Run failed. Check error details and retry 'run'.".to_string(),
176+
"run_failed" => "Run failed. Run 'destroy' and create a new environment.".to_string(),
177177
"destroy_failed" => {
178178
"Destruction failed. Check error details and retry 'destroy'.".to_string()
179179
}
@@ -351,7 +351,7 @@ mod tests {
351351
fn it_should_handle_failed_states() {
352352
let guidance = EnvironmentInfoView::get_next_step_guidance("provision_failed");
353353
assert!(guidance.contains("failed"));
354-
assert!(guidance.contains("retry"));
354+
assert!(guidance.contains("destroy"));
355355
}
356356
}
357357
}

0 commit comments

Comments
 (0)