Skip to content

Commit 37aeaae

Browse files
authored
Merge pull request #113 from hinshun/group-drop-err
Fix group blocks from dropping errors
2 parents e1098de + 1576518 commit 37aeaae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codegen/codegen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ func (cg *CodeGen) EmitStringBlock(ctx context.Context, scope *parser.Scope, stm
366366

367367
func (cg *CodeGen) EmitGroupBlock(ctx context.Context, scope *parser.Scope, stmts []*parser.Stmt, ac aliasCallback, chainStart interface{}) (solver.Request, error) {
368368
v, err := cg.EmitBlock(ctx, scope, parser.Group, stmts, ac, chainStart)
369-
if v == nil {
369+
if err != nil {
370370
return nil, err
371371
}
372372

0 commit comments

Comments
 (0)