mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-29 10:34:43 +00:00
parent
10b8fb7b26
commit
63299df4b9
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ func LuaFunctionComplete(function string) func(string) []string {
|
|||
func LuaFunctionJob(function string) func(string, ...string) {
|
||||
return func(output string, args ...string) {
|
||||
_, err := Call(function, unpack(append([]string{output}, args...))...)
|
||||
if err != nil {
|
||||
if err != nil && !strings.HasPrefix(err.Error(), "function does not exist") {
|
||||
TermMessage(err)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue