chore: improve indoc! indentation in psl-core
@@ -547,8 +547,8 @@ pub(crate) fn required_relation_cannot_use_set_null(relation: InlineRelationWalk
if let Some(ReferentialAction::SetNull) = forward.explicit_on_delete() {
ctx.push_error(DatamodelError::new_attribute_validation_error(
- indoc! {"The `onDelete` referential action of a relation must not be set to `SetNull` when a referenced field is required.
-Either choose another referential action, or make the referenced fields optional."},
+ indoc! {r#"The `onDelete` referential action of a relation must not be set to `SetNull` when a referenced field is required.
+Either choose another referential action, or make the referenced fields optional."#},
RELATION_ATTRIBUTE_NAME,
forward.ast_field().span(),
))
@@ -556,8 +556,8 @@ Either choose another referential action, or make the referenced fields optional
if let Some(ReferentialAction::SetNull) = forward.explicit_on_update() {
ctx.push_error(DatamodelError::new_attribute_validation_error(
- indoc! {"The `onUpdate` referential action of a relation must not be set to `SetNull` when a referenced field is required.
-Either choose another referential action, or make the referenced fields optional."},
+ indoc! {r#"The `onUpdate` referential action of a relation must not be set to `SetNull` when a referenced field is required.
+Either choose another referential action, or make the referenced fields optional."#},
RELATION_ATTRIBUTE_NAME,
forward.ast_field().span(),
))
