Wrapping the invalid request errors for CreateSipParticipant (#4239)
This commit is contained in:
+1
-1
@@ -612,7 +612,7 @@ func (s *SIPService) CreateSIPParticipantRequest(ctx context.Context, req *livek
|
|||||||
return nil, ErrSIPNotConnected
|
return nil, ErrSIPNotConnected
|
||||||
}
|
}
|
||||||
if err := req.Validate(); err != nil {
|
if err := req.Validate(); err != nil {
|
||||||
return nil, err
|
return nil, twirp.WrapError(twirp.NewError(twirp.InvalidArgument, err.Error()), err)
|
||||||
}
|
}
|
||||||
callID := sip.NewCallID()
|
callID := sip.NewCallID()
|
||||||
log := logger.GetLogger().WithUnlikelyValues(
|
log := logger.GetLogger().WithUnlikelyValues(
|
||||||
|
|||||||
Reference in New Issue
Block a user