<p dir="auto">Build: <a href="https://github.visualstudio.com/electron/_build/results?buildId=14677&amp;view=logs" rel="nofollow">https://github.visualstudio.com/electron/_build/results?buildId=14677&amp;view=logs</a><br>
Patch: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="368655813" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/15056" data-hovercard-type="pull_request" data-hovercard-url="/electron/electron/pull/15056/hovercard" href="https://github.com/electron/electron/pull/15056">#15056</a></p>
<p dir="auto">We should fix this properly instead of patching out the <code class="notranslate">sys.exit</code></p>
<ul dir="auto">
<li>Electron version: 0.36.9</li>
<li>Operating system: Mac OSX 10.11.14</li>
</ul>
<p dir="auto">When I click on a link that triggers a file download, it emits a <code class="notranslate">did-fail-load</code> event with an error code <code class="notranslate">-3</code>. The download works and is saved as expected though.</p>
<p dir="auto">As a side note, I was calling <code class="notranslate">loadURL</code> in the <code class="notranslate">did-fail-load</code> handler which caused Electron to crash. I can provide the full dump for that if you'd like.</p>
<p dir="auto">Let me know if you'd like any more details.</p>