]> khamidou — GitHub mirrors - electron.git/commitdiff
Update web-contents.md
authorEran Tiktin <etiktin@users.noreply.github.com>
Sun, 25 Oct 2015 15:00:29 +0000 (17:00 +0200)
committerEran Tiktin <etiktin@users.noreply.github.com>
Sun, 25 Oct 2015 15:00:29 +0000 (17:00 +0200)
The `did-fail-load` event returns an error code and error description. The error description is at least sometimes empty (e.g. when the error code is -102 on Windows), so you're left with an error code without knowing what happened. So I add a link to Chromium's net_error_list.h.

docs/api/web-contents.md

index 006d7e3934b9b9d31bc9530b49b90f96d9a0e8dd..7633efbfb3de5a484cf682484234f61f19746bec 100644 (file)
@@ -36,6 +36,7 @@ Returns:
 
 This event is like `did-finish-load` but emitted when the load failed or was
 cancelled, e.g. `window.stop()` is invoked.
+The full list of error codes and their meaning is available [here](https://code.google.com/p/chromium/codesearch#chromium/src/net/base/net_error_list.h).
 
 ### Event: 'did-frame-finish-load'