Skip to content

Commit

Permalink
fix: Fix incorrect exception description
Browse files Browse the repository at this point in the history
  • Loading branch information
fedulvtubudul committed Mar 30, 2023
1 parent 8fda3ba commit adf37ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mediasoup_Private/Transport/SendTransportListenerAdapter.mm
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
appData: appDataString callback: ^(NSString *id) {
try {
if (id == nil) {
auto ep = make_exception_ptr(MediaSoupClientError("TransportIdIsNil"));
auto ep = make_exception_ptr(MediaSoupClientError("ProducerIdIsNil"));
promise.set_exception(ep);
} else {
promise.set_value(std::string([id UTF8String]));
Expand Down Expand Up @@ -77,7 +77,7 @@
protocol:protocolString appData:appDataString callback: ^(NSString *id) {
try {
if (id == nil) {
auto ep = make_exception_ptr(MediaSoupClientError("TransportIdIsNil"));
auto ep = make_exception_ptr(MediaSoupClientError("ProducerIdIsNil"));
promise.set_exception(ep);
} else {
promise.set_value(std::string([id UTF8String]));
Expand Down

0 comments on commit adf37ad

Please sign in to comment.