mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
DEV: Add link to gjs template override error (#23880)
This commit is contained in:
parent
5f5fe912a5
commit
38e7960082
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user