cmd/land: print process exit code

This commit is contained in:
Cadey Ratio 2018-06-07 18:21:13 -07:00
parent 2af7287ace
commit a1152d8f24
1 changed files with 3 additions and 1 deletions

View File

@ -43,8 +43,10 @@ func main() {
ln.Fatal(ctx, ln.F{"msg": "no main function exported"})
}
_, err = p.vm.ExecCode(int64(mainID))
returnCode, err := p.vm.ExecCode(int64(mainID))
if err != nil {
ln.FatalErr(ctx, err)
}
ln.Log(ctx, ln.Info("process returned code"), ln.F{"code": returnCode})
}