Skip to content

Commit

Permalink
Merge pull request #662 from dedis/issue657
Browse files Browse the repository at this point in the history
Warn when a failed connection might be from a known bug
  • Loading branch information
Jeff R. Allen authored Sep 1, 2020
2 parents eaa7963 + 655fed7 commit 3ac7df9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion network/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,15 @@ func handleError(err error) error {
return ErrTimeout
}

log.Errorf("Unknown error caught: %s", err.Error())
if strings.Contains(err.Error(), "bad certificate") {
// This is a weak indication of the accidental
// onet 3.2.4/3.2.5 backwards incompatiblity, so explain
// the problem to help the user.
log.Errorf("Unknown error caught: %s %v", err.Error(),
"(This may be caused by Onet > v3.2.4 talking to Onet <= v3.2.4. See https://github.com/dedis/onet/issues/657 for more info.)")
} else {
log.Errorf("Unknown error caught: %s", err.Error())
}
return ErrUnknown
}

Expand Down

0 comments on commit 3ac7df9

Please sign in to comment.