Skip to content

Commit

Permalink
Fix CodeClimate issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasMahe committed Jun 5, 2018
1 parent 5f2b1a3 commit dacfc34
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/core/listen_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@ func validateOutputKey(service *service.Service, taskKey string, outputFilter st
return
}
_, ok = task.Outputs[outputFilter]
if ok {
return
if !ok {
err = errors.New("Output '" + outputFilter + "' doesn't exist in the task '" + taskKey + "' of this service")
}
err = errors.New("Output '" + outputFilter + "' doesn't exist in the task '" + taskKey + "' of this service")
return
}

Expand Down

0 comments on commit dacfc34

Please sign in to comment.