-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error codes #74
Comments
Seems reasonable, I'll try to get this done soon! |
Could you also add a boolean property such as /* client */
{
code: "INVALID_DESTINATION_HOST",
message: "An invalid destination host was provided.",
fatal: true
}
/* server */
{
code: "SOCKS4_REJECTED_INCOMING",
detail: "Failure",
message: "Socks4 Proxy rejected incoming bound connection - Failure",
fatal: false
} Are some errors in https://github.com/JoshGlazebrook/socks/blob/master/src/common/constants.ts not being thrown? I see about half of them being used in https://github.com/JoshGlazebrook/socks/blob/master/src/client/socksclient.ts. |
@JoshGlazebrook Do you think you would be able to add these? |
Error messages like
Socks4 Proxy rejected incoming bound connection - Failed
could change and are concatenated from 2 different parts sometimes likeERRORS.Socks4ProxyRejectedIncomingBoundConnection
andSocks4Response[data[1]]
socks/src/client/socksclient.ts
Line 566 in 6c777c2
To do error handling we would need to do string manipulation on
error.message
which isn't reliable. It will be better if we could haveerror.code
anderror.detail
property if the error has detail information in addition to human readableerror.message
.The text was updated successfully, but these errors were encountered: