Check for errors returned by read_line().