Skip to content

Commit

Permalink
fix(backend): return error properly (#11424)
Browse files Browse the repository at this point in the history
The `return` statement was missing when `id == 0`.

Signed-off-by: Sébastien Han <[email protected]>
  • Loading branch information
leseb authored Dec 2, 2024
1 parent 58b2d8d commit 13f83cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/v2/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -2018,7 +2018,7 @@ func createCache(
) error {
id := execution.GetID()
if id == 0 {
fmt.Errorf("failed to get id from createdExecution")
return fmt.Errorf("failed to get id from createdExecution")
}
task := &api.Task{
//TODO how to differentiate between shared pipeline and namespaced pipeline
Expand Down

0 comments on commit 13f83cf

Please sign in to comment.