fix: remove debug logging

pull/61/head
sammyette 2021-06-12 10:41:51 -04:00
parent a413b28f2a
commit 7e5f9e9541
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 2 additions and 1 deletions

View File

@ -33,11 +33,12 @@ func RunInput(input string) {
fn, err := l.LoadString(cmdString)
if err != nil && noexecute {
fmt.Println(err)
if lerr, ok := err.(*lua.ApiError); ok {
/* if lerr, ok := err.(*lua.ApiError); ok {
if perr, ok := lerr.Cause.(*parse.Error); ok {
print(perr.Pos.Line == parse.EOF)
}
}
*/
return
}
// And if there's no syntax errors and -n isnt provided, run