From 3c9438c1e93f0aebe6c3fe182573b7f97659bb4d Mon Sep 17 00:00:00 2001 From: ItzSiL3Nce Date: Tue, 8 Aug 2023 10:26:50 +0200 Subject: [PATCH] psl: extend the error diagnostic message when choosing a bad relation mode with the new 'prismaSkipIntegrity' mode --- psl/psl-core/src/validate/datasource_loader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psl/psl-core/src/validate/datasource_loader.rs b/psl/psl-core/src/validate/datasource_loader.rs index e7e5b78f52eb..20fa9f4eb3c6 100644 --- a/psl/psl-core/src/validate/datasource_loader.rs +++ b/psl/psl-core/src/validate/datasource_loader.rs @@ -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);