Improved error reporting (for longtest)