From 807139ff2b4b6fb81726459b1ef1958d95f7cd95 Mon Sep 17 00:00:00 2001 From: Nikhil Saraf <1028334+nikhilsaraf@users.noreply.github.com> Date: Mon, 25 Mar 2019 11:19:03 -0700 Subject: [PATCH] krakenExchange logs better error message when trading pair is missing --- plugins/krakenExchange.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/krakenExchange.go b/plugins/krakenExchange.go index 8bdc21dd0..4aadae595 100644 --- a/plugins/krakenExchange.go +++ b/plugins/krakenExchange.go @@ -196,8 +196,7 @@ func getFieldValue(object krakenapi.BalanceResponse, fieldName string) float64 { func (k *krakenExchange) GetOrderConstraints(pair *model.TradingPair) *model.OrderConstraints { constraints, ok := krakenPrecisionMatrix[*pair] if !ok { - log.Printf("krakenExchange could not find orderConstraints for trading pair %v, returning nil\n", pair) - return nil + panic(fmt.Sprintf("krakenExchange could not find orderConstraints for trading pair %v. Try using the \"ccxt-kraken\" integration instead.", pair)) } return &constraints }