From 299b6b6d9fb879c06e675ef240f361348629ff6c Mon Sep 17 00:00:00 2001 From: jloup Date: Thu, 10 May 2018 16:22:29 +0200 Subject: Add column 'status' to market_configs. --- markets/poloniex.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'markets') diff --git a/markets/poloniex.go b/markets/poloniex.go index 58645b2..cadc829 100644 --- a/markets/poloniex.go +++ b/markets/poloniex.go @@ -20,7 +20,7 @@ func poloniexInvalidCredentialsError(err error) bool { if err == nil { return false } - return strings.Contains(err.Error(), "Invalid API key/secret pair") + return strings.Contains(err.Error(), "Invalid API key/secret pair") || strings.Contains(err.Error(), "Set the API KEY and API SECRET") } func poloniexRestrictedIPError(err error) bool { @@ -65,7 +65,7 @@ func (p *Poloniex) TestCredentials(apiKey, apiSecret string) error { return utils.Error{IPRestricted, "IP restricted api key"} } - return nil + return err } func (p *Poloniex) GetBalance(apiKey, apiSecret string) (Summary, error) { -- cgit v1.2.3