mirror of https://github.com/Hilbis/Hilbish
Compare commits
3 Commits
5d8b63d682
...
ee65a4f84b
Author | SHA1 | Date |
---|---|---|
sammyette | ee65a4f84b | |
sammyette | a0513c0a05 | |
sammyette | 1d64a57e24 |
3
exec.go
3
exec.go
|
@ -175,6 +175,9 @@ func runLuaRunner(runr rt.Value, userInput string) (input string, exitCode uint8
|
|||
runnerRet := term.Get(0)
|
||||
if runner, ok = runnerRet.TryTable(); !ok {
|
||||
fmt.Fprintln(os.Stderr, "runner did not return a table")
|
||||
exitCode = 125
|
||||
input = userInput
|
||||
return
|
||||
}
|
||||
|
||||
if code, ok := runner.Get(rt.StringValue("exitCode")).TryInt(); ok {
|
||||
|
|
Loading…
Reference in New Issue