Compare commits
2 Commits
0f0411a5b3
...
21894ab024
Author | SHA1 | Date | |
---|---|---|---|
21894ab024 | |||
4c2d96512e |
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user