mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-08 00:16:27 +00:00
Added message on authentication exception
This commit is contained in:
parent
892e8a4508
commit
6361c5ef25
@ -418,17 +418,24 @@ namespace CryptoExchange.Net
|
|||||||
var bodyParameters = parameterPosition == HttpMethodParameterPosition.InBody ? new SortedDictionary<string, object>(parameters) : new SortedDictionary<string, object>();
|
var bodyParameters = parameterPosition == HttpMethodParameterPosition.InBody ? new SortedDictionary<string, object>(parameters) : new SortedDictionary<string, object>();
|
||||||
if (AuthenticationProvider != null)
|
if (AuthenticationProvider != null)
|
||||||
{
|
{
|
||||||
AuthenticationProvider.AuthenticateRequest(
|
try
|
||||||
this,
|
{
|
||||||
uri,
|
AuthenticationProvider.AuthenticateRequest(
|
||||||
method,
|
this,
|
||||||
parameters,
|
uri,
|
||||||
signed,
|
method,
|
||||||
arraySerialization,
|
parameters,
|
||||||
parameterPosition,
|
signed,
|
||||||
out uriParameters,
|
arraySerialization,
|
||||||
out bodyParameters,
|
parameterPosition,
|
||||||
out headers);
|
out uriParameters,
|
||||||
|
out bodyParameters,
|
||||||
|
out headers);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new Exception("Failed to authenticate request, make sure your API credentials are correct", ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sanity check
|
// Sanity check
|
||||||
|
Loading…
x
Reference in New Issue
Block a user