driver: make TYPE_MISMATCH a fatal error
If we get a type-mismatch on reading an incoming message, it must be a programming
error on our side, as the type is verified to be as expected.
@@ -621,7 +621,6 @@ static int driver_end_read(CDVar *var) {
switch (r) {
case C_DVAR_E_CORRUPT_DATA:
case C_DVAR_E_OUT_OF_BOUNDS:
- case C_DVAR_E_TYPE_MISMATCH:
return DRIVER_E_INVALID_MESSAGE;
default:
return error_origin(r);
