mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 10:22:29 +00:00
Wrapping the invalid request errors for CreateSipParticipant (#4239)
This commit is contained in:
1 parent
843d8c3ea1
commit
07572511ba
1 file changed
+1
-1
+1
-1
@@ -612,7 +612,7 @@ func (s *SIPService) CreateSIPParticipantRequest(ctx context.Context, req *livek
|
||||
return nil, ErrSIPNotConnected
|
||||
}
|
||||
if err := req.Validate(); err != nil {
|
||||
return nil, err
|
||||
return nil, twirp.WrapError(twirp.NewError(twirp.InvalidArgument, err.Error()), err)
|
||||
}
|
||||
callID := sip.NewCallID()
|
||||
log := logger.GetLogger().WithUnlikelyValues(
|
||||
|
||||
Reference in new issue
Block a user