cmd/land: print process exit code
This commit is contained in:
parent
2af7287ace
commit
a1152d8f24
|
@ -43,8 +43,10 @@ func main() {
|
||||||
ln.Fatal(ctx, ln.F{"msg": "no main function exported"})
|
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 {
|
if err != nil {
|
||||||
ln.FatalErr(ctx, err)
|
ln.FatalErr(ctx, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ln.Log(ctx, ln.Info("process returned code"), ln.F{"code": returnCode})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue