Skip to content

Commit

Permalink
fix: return err directly when query build is failed (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
deryrahman authored Dec 30, 2024
1 parent 7929d43 commit 77540fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mc2mc/mc2mc.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func mc2mc(envs []string) error {
query.WithOverridedValue("_partitiondate", fmt.Sprintf("DATE(TIMESTAMP('%s'))", dates[i])),
).Build()
if err != nil {
break
return errors.WithStack(err)
}
queriesToExecute = append(queriesToExecute, queryToExecute)
}
Expand Down

0 comments on commit 77540fb

Please sign in to comment.