error catching for line in table with logging