Skip to content

Commit

Permalink
Update unreachable message
Browse files Browse the repository at this point in the history
  • Loading branch information
Druue committed Nov 8, 2023
1 parent aa4803c commit 63fef0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions query-engine/prisma-models/src/field/scalar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,8 @@ impl ScalarField {
};

match scalar_field_type {
// TODO: Fix message -- composite types do work?
// ? Is this message not validated anywhere ?
ScalarFieldType::CompositeType(_) => {
unreachable!("Cannot convert a composite type to a type identifier. This error is typically caused by mistakenly using a composite type within a composite index.",)
unreachable!("This shouldn't be reached; composite types are not supported in unique indices.",)
}
ScalarFieldType::Enum(x) => TypeIdentifier::Enum(x),
ScalarFieldType::BuiltInScalar(scalar) => scalar.into(),
Expand Down

0 comments on commit 63fef0c

Please sign in to comment.