map through NodeNotFoundErrors
@@ -299,6 +299,10 @@ impl From<BridgeError> for super::prisma::error::Value {
super::prisma::error::Value::UniqueConstraintViolation(field_name)
}
+ e @ BridgeError::ConnectorError(ConnectorError::NodeNotFoundForWhere { .. }) => {
+ super::prisma::error::Value::NodeNotFoundForWhere(format!("{}", e))
+ }
+
e @ BridgeError::ProtobufDecodeError(_) => {
super::prisma::error::Value::ProtobufDecodeError(format!("{}", e))
}
