mirror of
https://github.com/pion/webrtc.git
synced 2025-10-15 19:50:42 +08:00
Fix error reporting
Wrong error variable was used in data-channels-create example.
This commit is contained in:
@@ -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