diff options
| author | Jonathan Turner <jonathandturner@users.noreply.github.com> | 2016-09-26 17:29:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-26 17:29:49 -0700 |
| commit | 5c9fc995201420a97db119fa19c8e8d3000dbefa (patch) | |
| tree | 4bbd170aff91d8537f41fa08eeaae8f47bf4609e /src/rustllvm/RustWrapper.cpp | |
| parent | 816f1477bbcf591c0cce20f92824606412ed3c5b (diff) | |
| parent | c52b957b897a049cfe5f7042eed08fb46ca11c2e (diff) | |
| download | rust-5c9fc995201420a97db119fa19c8e8d3000dbefa.tar.gz rust-5c9fc995201420a97db119fa19c8e8d3000dbefa.zip | |
Rollup merge of #36754 - tmiasko:getaddrinfo-errors, r=alexcrichton
When getaddrinfo returns EAI_SYSTEM retrieve actual error from errno.
Fixes issue #36546. This change also updates libc to earliest version
that includes EAI_SYSTEM constant.
Previously, in cases where `EAI_SYSTEM` has been returned from getaddrinfo, the
resulting `io::Error` would be broadly described as "System error":
Error { repr: Custom(Custom { kind: Other, error: StringError("failed to lookup address information: System error") }) }
After change a more detailed error is crated based on particular value of
errno, for example:
Error { repr: Os { code: 64, message: "Machine is not on the network" } }
The only downside is that the prefix "failed to lookup address information" is
no longer included in the error message.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
