2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-02 19:53:23 +00:00

fix: print error in interval func instead of panic

This commit is contained in:
sammyette 2021-06-11 23:54:18 -04:00
parent a4dbfbf4bb
commit f594d48790
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5

3
lua.go
View File

@ -170,7 +170,8 @@ func hshinterval(L *lua.LState) int {
NRet: 0, NRet: 0,
Protect: true, Protect: true,
}); err != nil { }); err != nil {
panic(err) fmt.Fprintln(os.Stderr,
"Error in interval function:\n\n", err)
} }
case <-stop: case <-stop:
ticker.Stop() ticker.Stop()