Add some error printouts