Return error on certificate fingerprint failure

Instead of printing the error to stdout return the error to the user.
This may not be a hard error (as later certificates would have passed)
but it never is good to be in a state where you have certificates in a
broken state.

Resolves #586
This commit is contained in:
Sean DuBois
2019-04-04 21:26:26 -07:00
parent 6e26cd208f
commit 4c781e64d9
8 changed files with 46 additions and 18 deletions

View File

@@ -73,7 +73,10 @@ func main() {
panic(err)
}
quicParams := qt.GetLocalParameters()
quicParams, err := qt.GetLocalParameters()
if err != nil {
panic(err)
}
s := Signal{
ICECandidates: iceCandidates,