Encapsulate eval code in begin-rescue to raise error in output file