From 3ef6f24f2b0bd331fb59b107116b0cfa1c8d00aa Mon Sep 17 00:00:00 2001 From: Jeroen Versteeg Date: Fri, 2 Dec 2022 17:07:48 +0100 Subject: [PATCH] Fixed error message in outlet_properties The error message hard-coded `data-controller` instead of referring to the schema's attribute name --- src/core/outlet_properties.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/outlet_properties.ts b/src/core/outlet_properties.ts index 3fe7928d..704f6e33 100644 --- a/src/core/outlet_properties.ts +++ b/src/core/outlet_properties.ts @@ -24,7 +24,7 @@ function propertiesForOutletDefinition(name: string) { return outletController } else { throw new Error( - `Missing "data-controller=${name}" attribute on outlet element for "${this.identifier}" controller` + `Missing "${this.application.schema.controllerAttribute}=${name}" attribute on outlet element for "${this.identifier}" controller` ) } }