mirror of https://github.com/Hilbis/Hilbish
Compare commits
3 Commits
8935426d08
...
339677884b
Author | SHA1 | Date |
---|---|---|
sammyette | 339677884b | |
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