Olivine-Labs/busted — pull request #293 by tbastos (2014-11-17 17:14:57+00:00)
Title: Fix error message for .lua test files with syntax errors

When loadfile() fails for a .lua test file you were passing 'err' as the 'trace' object, and it was being ignored (busted printed only "Error", nothing else). Now I'm passing 'err' as the message, and an empty {} trace object just for compatibility with the output handlers... I considered passing { traceback = err } but err is not a traceback, so I think passing it as an error message makes more sense

I also removed an unnecessary pcall() and duplicate code.