diff --git a/modules/smithy/api_trade.go b/modules/smithy/api_trade.go index 398f1c4e7..fcf0474ab 100644 --- a/modules/smithy/api_trade.go +++ b/modules/smithy/api_trade.go @@ -31,20 +31,15 @@ func (this *apiComp) Sell(session comm.IUserSession, req *pb.SmithySellReq) (err if err != nil { var customErr = new(comm.CustomError) if errors.As(err, &customErr) { - errdata = &pb.ErrorData{ - Code: customErr.Code, - Title: customErr.Code.ToString(), - Message: err.Error(), - } + this.module.Debug(customErr.Code.String()) } else { errdata = &pb.ErrorData{ Code: pb.ErrorCode_DBError, Title: pb.ErrorCode_DBError.ToString(), Message: err.Error(), } + return } - - return } conf, err := this.module.configure.GetSmithyCustomerConf(req.CustomerId)