Skip to content

Commit

Permalink
feat(clients/zbctl): set error message in fail command to stderr content
Browse files Browse the repository at this point in the history
  • Loading branch information
menski committed Dec 6, 2018
1 parent 23dcc25 commit 8f8b388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/zbctl/cmd/createWorker.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func completeJob(jobClient worker.JobClient, job entities.Job, payload string) {

func failJob(jobClient worker.JobClient, job entities.Job, error string) {
log.Println("Command failed to handle job", job.Key, error)
_, err := jobClient.NewFailJobCommand().JobKey(job.Key).Retries(job.Retries - 1).Send()
_, err := jobClient.NewFailJobCommand().JobKey(job.Key).Retries(job.Retries - 1).ErrorMessage(error).Send()
if err != nil {
log.Println("Unable to fail job", err)
}
Expand Down

0 comments on commit 8f8b388

Please sign in to comment.