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

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