Skip to content

Commit

Permalink
Undo change
Browse files Browse the repository at this point in the history
  • Loading branch information
lateefj committed May 22, 2019
1 parent b90b269 commit 5af259a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interp/interp.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func execProgram(p *interp, program *Program) (int, error) {
// Execute the program! BEGIN, then pattern/actions, then END
err := p.execBeginEnd(program.Begin)
if err != nil && err != errExit {
return 0, err
return p.exitStatus, err
}
if program.Actions == nil && program.End == nil {
return p.exitStatus, nil
Expand Down

0 comments on commit 5af259a

Please sign in to comment.