Skip to content

Commit 109fe7f

Browse files
committed
[core] Correctly report deployment error
1 parent 091766c commit 109fe7f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/environment/manager.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ func (envs *Manager) CreateEnvironment(workflowPath string) (uuid.UUID, error) {
8686
// configuration. In this case, the task is likely to go STANDBY×CONFIGURE→ERROR,
8787
// so there's no point in keeping it for future recovery & reconfiguration.
8888
var killedTasks task.Tasks
89-
killedTasks, _, err = envs.taskman.KillTasks(envTasks.GetTaskIds())
90-
if err != nil {
91-
log.WithError(err).Warn("task teardown error")
89+
killedTasks, _, rlsErr = envs.taskman.KillTasks(envTasks.GetTaskIds())
90+
if rlsErr != nil {
91+
log.WithError(rlsErr).Warn("task teardown error")
9292
}
9393
log.WithFields(logrus.Fields{
9494
"killedCount": len(killedTasks),

0 commit comments

Comments
 (0)