add errorcode to unexcpectederror notification