add error message when temp edges are not removed