add line number to error message