Issue #10: Improve p_error method