Skip to content

Commit

Permalink
psl: extend the error diagnostic message when choosing a bad relation…
Browse files Browse the repository at this point in the history
… mode with the new 'prismaSkipIntegrity' mode
  • Loading branch information
ItzSiL3Nce committed Aug 8, 2023
1 parent 2fa2a53 commit 3c9438c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psl/psl-core/src/validate/datasource_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ fn get_relation_mode(
"prismaSkipIntegrity" => RelationMode::PrismaSkipIntegrity,
other => {
let message = format!(
"Invalid relation mode setting: \"{other}\". Supported values: \"prisma\", \"foreignKeys\"",
"Invalid relation mode setting: \"{other}\". Supported values: \"prisma\", \"foreignKeys\", \"prismaSkipIntegrity\"",
);
let error = DatamodelError::new_source_validation_error(&message, "relationMode", source.span);
diagnostics.push_error(error);
Expand Down

0 comments on commit 3c9438c

Please sign in to comment.