2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-01 11:13:24 +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,
Protect: true,
}); err != nil {
panic(err)
fmt.Fprintln(os.Stderr,
"Error in interval function:\n\n", err)
}
case <-stop:
ticker.Stop()