mirror of https://github.com/Hilbis/Hilbish
Compare commits
No commits in common. "a0513c0a05df8e837076df35ec58705d55a19e8e" and "1a4585aa7a3173705edb2de984f1a2aab2a96010" have entirely different histories.
a0513c0a05
...
1a4585aa7a
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