mirror of
https://github.com/pion/webrtc.git
synced 2025-10-16 20:20:53 +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*
|
||||
* [adwpc](https://github.com/adwpc) - *SFU example with websocket*
|
||||
* [imalic3](https://github.com/imalic3) - *SFU websocket example with datachannel broadcast*
|
||||
* [Žiga Željko](https://github.com/zigazeljko)
|
||||
|
||||
### License
|
||||
MIT License - see [LICENSE](LICENSE) for full text
|
||||
|
@@ -50,7 +50,7 @@ func main() {
|
||||
// Send the message as text
|
||||
sendErr := dataChannel.SendText(message)
|
||||
if sendErr != nil {
|
||||
panic(err)
|
||||
panic(sendErr)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user