fix!: make streams keys almost match sink

pull/291/head
sammyette 2024-04-27 20:11:36 -04:00
parent b09be2e131
commit 3f06cbd208
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 3 additions and 3 deletions

6
api.go
View File

@ -211,10 +211,10 @@ func hlrun(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
return nil, errors.New("bad argument to run (expected boolean or table, got " + tout.TypeName() + ")") return nil, errors.New("bad argument to run (expected boolean or table, got " + tout.TypeName() + ")")
} }
handleStream(luastreams.Get(rt.StringValue("stdout")), strms, false) handleStream(luastreams.Get(rt.StringValue("out")), strms, false)
handleStream(luastreams.Get(rt.StringValue("stderr")), strms, true) handleStream(luastreams.Get(rt.StringValue("err")), strms, true)
stdinstrm := luastreams.Get(rt.StringValue("stdin")) stdinstrm := luastreams.Get(rt.StringValue("input"))
if !stdinstrm.IsNil() { if !stdinstrm.IsNil() {
ud, ok := stdinstrm.TryUserData() ud, ok := stdinstrm.TryUserData()
if !ok { if !ok {