Fix error reporting

Wrong error variable was used in data-channels-create example.
This commit is contained in:
zigazeljko
2019-03-21 23:04:28 +01:00
committed by Sean DuBois
parent e3d9ad00da
commit ee5aa24977
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -50,7 +50,7 @@ func main() {
// Send the message as text
sendErr := dataChannel.SendText(message)
if sendErr != nil {
panic(err)
panic(sendErr)
}
}
})