wrap up errorLine addition in a function