mirror of
https://github.com/pion/webrtc.git
synced 2025-10-17 04:31:00 +08:00
Fix error reporting
Wrong error variable was used in data-channels-create example.
This commit is contained in:
@@ -101,6 +101,7 @@ Check out the **[contributing wiki](https://github.com/pions/webrtc/wiki/Contrib
|
|||||||
* [Alex Browne](https://github.com/albrow) - *JavaScript/Wasm bindings*
|
* [Alex Browne](https://github.com/albrow) - *JavaScript/Wasm bindings*
|
||||||
* [adwpc](https://github.com/adwpc) - *SFU example with websocket*
|
* [adwpc](https://github.com/adwpc) - *SFU example with websocket*
|
||||||
* [imalic3](https://github.com/imalic3) - *SFU websocket example with datachannel broadcast*
|
* [imalic3](https://github.com/imalic3) - *SFU websocket example with datachannel broadcast*
|
||||||
|
* [Žiga Željko](https://github.com/zigazeljko)
|
||||||
|
|
||||||
### License
|
### License
|
||||||
MIT License - see [LICENSE](LICENSE) for full text
|
MIT License - see [LICENSE](LICENSE) for full text
|
||||||
|
@@ -50,7 +50,7 @@ func main() {
|
|||||||
// Send the message as text
|
// Send the message as text
|
||||||
sendErr := dataChannel.SendText(message)
|
sendErr := dataChannel.SendText(message)
|
||||||
if sendErr != nil {
|
if sendErr != nil {
|
||||||
panic(err)
|
panic(sendErr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user