# How to create local copy of Sockets to get at source to determine code path for error codes

**URL:** <https://discourse.julialang.org/t/how-to-create-local-copy-of-sockets-to-get-at-source-to-determine-code-path-for-error-codes/100292>\
**Category:** New to Julia\
**Created:** [June 13, 2023, 5:19pm UTC](https://discourse.julialang.org/t/how-to-create-local-copy-of-sockets-to-get-at-source-to-determine-code-path-for-error-codes/100292 "2023-06-13T17:19:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![schaefer0](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@schaefer0](https://discourse.julialang.org/u/schaefer0)\
**Post date:** [June 13, 2023, 5:19pm UTC](https://discourse.julialang.org/t/how-to-create-local-copy-of-sockets-to-get-at-source-to-determine-code-path-for-error-codes/100292/1 "2023-06-13T17:19:27Z")

</div>

The intent is to convert an error code to an error message.  
All errors return Unknown System Error  
julia\>Sockets.DNSError(“nebula.mit.edu”,2)

DNSError: nebula.mit.edu, Unknown system error 2 (Unknown system error 2)

I tried “dev” but I got this error:  
**(@v1.9) pkg\>** dev Sockets

**ERROR:** The following package names could not be resolved:

- Sockets (6462fe0b-24de-5631-8697-dd941f90decc in manifest but not in project)

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [June 13, 2023, 6:31pm UTC](https://discourse.julialang.org/t/how-to-create-local-copy-of-sockets-to-get-at-source-to-determine-code-path-for-error-codes/100292/2 "2023-06-13T18:31:06Z")

</div>

Many standard libraries, including Sockets, live in the [JuliaLang/julia](https://github.com/JuliaLang/julia) repository, so cloning that repo gives you Sockets too, see [stdlib/Sockets](https://github.com/JuliaLang/julia/tree/master/stdlib/Sockets).

---

<div class="post-metadata">

**Author:** ![schaefer0](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@schaefer0](https://discourse.julialang.org/u/schaefer0)\
**Post date:** [June 13, 2023, 6:37pm UTC](https://discourse.julialang.org/t/how-to-create-local-copy-of-sockets-to-get-at-source-to-determine-code-path-for-error-codes/100292/3 "2023-06-13T18:37:40Z")

</div>

Thank you!
