diff --git a/src/rpc/format/msgpack/convert.rs b/src/rpc/format/msgpack/convert.rs index 7cdcba2f..35049f88 100644 --- a/src/rpc/format/msgpack/convert.rs +++ b/src/rpc/format/msgpack/convert.rs @@ -139,7 +139,7 @@ impl TryFrom for Pack { Value::Bytes(v) => Ok(Pack(Data::Binary(v.into_inner()))), Value::Thing(v) => Ok(Pack(Data::Ext(TAG_RECORDID, v.to_raw().as_bytes().to_vec()))), // We shouldn't reach here - _ => unreachable!(), + _ => Err("Found unsupported SurrealQL value being encoded into a msgpack value"), } } }