modified p_error method to print out a bit more specific information,
including line number.