During the 1970's an informant provided details about Watergate to Washington Post reporters.  This information was acted on, published in the paper, and led to the downfall of President Nixon.  Nixon was in the wrong.  He was caught.  He was disgraced and he resigned.  (It was later learned that the informant was a high ranking FBI official).

In 2016 an informant provided details about the HRC campaign to Wikileaks.  This information was acted on, published in the paper, and led to the downfall of the HRC campaign.  The campaign was wrong.  They were caught.  She did not get elected.  (It was later alleged that Russia was the informant while Wikileaks says no it was someone in the campaign)

Two different time periods, but otherwise the same.  Someone stole information and gave it to the press.  If one is wrong, both are wrong.  We might not like the fact that a state actor can hack into our email, but it is the high tech version of stealing documents.