Fix error message for .lua test files with syntax errors