mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-22 05:23:23 +00:00
Compare commits
3 Commits
e38d5616aa
...
4e3d2f8f86
Author | SHA1 | Date | |
---|---|---|---|
4e3d2f8f86 | |||
a0513c0a05 | |||
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…
x
Reference in New Issue
Block a user