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