|
The SDAM spec defines an error message to use when wire version compatibility checks fail:
"Server at $host:$port uses wire protocol versions $minWireVersion through
|
$maxWireVersion, but $driverName $driverVersion only supports $clientMinWireVersion
|
through $clientMaxWireVersion."
|
After DRIVERS-407 we're likely to see a lot of commercial support questions complaining about applications not connecting and weird messages about wire version. To minimize the number of support tickets I think we should improve the messaging. There are two ways compatibility checks can fail. In one case we know the exact server version to report, in the other we don't. I suggest splitting the existing error message in two:
"Server at $host:$port reports wire version $maxWireVersion, but this version
|
of $driverName requires at least $clientMinWireVersion (MongoDB x.x)."
|
and:
"Server at $host:$port requires wire version $minWireVersion, but this version
|
of $driverName only supports up to $clientMaxWireVersion."
|
|