diff --git a/pkg/analyser/alipay/alipay.go b/pkg/analyser/alipay/alipay.go index 242059b..3538787 100644 --- a/pkg/analyser/alipay/alipay.go +++ b/pkg/analyser/alipay/alipay.go @@ -81,13 +81,13 @@ func (a Alipay) GetAccountsAndTags(o *ir.Order, cfg *config.Config, target, prov if r.Time != nil { match, err = util.SplitFindTimeInterval(*r.Time, o.PayTime, match) if err != nil { - log.Fatalf(err.Error()) + log.Fatalf("%v", err) } } if r.TimestampRange != nil { match, err = util.SplitFindTimeStampInterval(*r.TimestampRange, o.PayTime, match) if err != nil { - log.Fatalf(err.Error()) + log.Fatalf("%v", err) } } if r.MinPrice != nil && o.Money < *r.MinPrice { diff --git a/pkg/analyser/htsec/htsec.go b/pkg/analyser/htsec/htsec.go index 9322749..cad0753 100644 --- a/pkg/analyser/htsec/htsec.go +++ b/pkg/analyser/htsec/htsec.go @@ -79,13 +79,13 @@ func (h Htsec) GetAccountsAndTags(o *ir.Order, cfg *config.Config, target, provi if r.Time != nil { match, err = util.SplitFindTimeInterval(*r.Time, o.PayTime, match) if err != nil { - log.Fatalf(err.Error()) + log.Fatalf("%v", err) } } if r.TimestampRange != nil { match, err = util.SplitFindTimeStampInterval(*r.TimestampRange, o.PayTime, match) if err != nil { - log.Fatalf(err.Error()) + log.Fatalf("%v", err) } } diff --git a/pkg/analyser/huobi/huobi.go b/pkg/analyser/huobi/huobi.go index 545ab3c..742e57b 100644 --- a/pkg/analyser/huobi/huobi.go +++ b/pkg/analyser/huobi/huobi.go @@ -82,13 +82,13 @@ func (h Huobi) GetAccountsAndTags(o *ir.Order, cfg *config.Config, target, provi if r.Time != nil { match, err = util.SplitFindTimeInterval(*r.Time, o.PayTime, match) if err != nil { - log.Fatalf(err.Error()) + log.Fatalf("%v", err) } } if r.TimestampRange != nil { match, err = util.SplitFindTimeStampInterval(*r.TimestampRange, o.PayTime, match) if err != nil { - log.Fatalf(err.Error()) + log.Fatalf("%v", err) } } if match { diff --git a/pkg/analyser/jd/jd.go b/pkg/analyser/jd/jd.go index b9f893f..32ad4ec 100644 --- a/pkg/analyser/jd/jd.go +++ b/pkg/analyser/jd/jd.go @@ -81,13 +81,13 @@ func (a JD) GetAccountsAndTags(o *ir.Order, cfg *config.Config, target, provider if r.Time != nil { match, err = util.SplitFindTimeInterval(*r.Time, o.PayTime, match) if err != nil { - log.Fatalf(err.Error()) + log.Fatalf("%v", err) } } if r.TimestampRange != nil { match, err = util.SplitFindTimeStampInterval(*r.TimestampRange, o.PayTime, match) if err != nil { - log.Fatalf(err.Error()) + log.Fatalf("%v", err) } }