Surround in try/catch, output errors