Better error reporting (also print everything to the console)