Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
10bffd10d6
@ -26,6 +26,11 @@ func (this *apiComp) Refuse(session comm.IUserSession, req *pb.SmithyRefuseReq)
|
||||
var errCustom = new(comm.CustomError)
|
||||
if errors.As(err, &errCustom) {
|
||||
this.module.Debug(errCustom.Code.String())
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_SmithyCustomerLimit,
|
||||
Title: pb.ErrorCode_SmithyCustomerLimit.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
} else {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
|
Loading…
Reference in New Issue
Block a user