diff --git a/Payload_Type/poseidon/poseidon/agent_code/lsopen/lsopen.go b/Payload_Type/poseidon/poseidon/agent_code/lsopen/lsopen.go index 1b1d874..aac42bc 100644 --- a/Payload_Type/poseidon/poseidon/agent_code/lsopen/lsopen.go +++ b/Payload_Type/poseidon/poseidon/agent_code/lsopen/lsopen.go @@ -39,15 +39,15 @@ func Run(task structs.Task) { return } - if r.Successful { - msg.UserOutput = "Successfully spawned process." - msg.Completed = true - task.Job.SendResponses <- msg - } else { - msg.UserOutput = "Failed to spawn process." - msg.Completed = true - task.Job.SendResponses <- msg - } + if r.Successful { + msg.UserOutput = "Successfully spawned application." + msg.Completed = true + task.Job.SendResponses <- msg + } else { + msg := task.NewResponse() + msg.SetError("Failed to spawn application.") + task.Job.SendResponses <- msg + } return }