DEV: Add link to gjs template override error (#23880)

This commit is contained in:
David Taylor
2023-10-10 18:02:29 +01:00
committed by GitHub
parent 5f5fe912a5
commit 38e7960082

View File

@@ -54,7 +54,9 @@ export default {
const finalOverrideModuleName = moduleNames[moduleNames.length - 1];
if (isStrictMode) {
const message = `[${finalOverrideModuleName}] ${componentName} was authored using gjs and its template cannot be overridden. Ignoring override.`;
const message =
`[${finalOverrideModuleName}] ${componentName} was authored using gjs and its template cannot be overridden. ` +
`Ignoring override. For more information on the future of template overrides, see https://meta.discourse.org/t/247487`;
if (THROW_GJS_ERROR) {
throw new Error(message);
} else {