diff --git a/src/classes/site.ts b/src/classes/site.ts index 4b830350a..e4f47cc15 100644 --- a/src/classes/site.ts +++ b/src/classes/site.ts @@ -658,7 +658,7 @@ export class CoreSite { } else if (error.errorcode === 'sitepolicynotagreed') { // Site policy not agreed, trigger event. this.eventsProvider.trigger(CoreEventsProvider.SITE_POLICY_NOT_AGREED, {}, this.id); - error.message = this.translate.instant('core.sitepolicynotagreederror'); + error.message = this.translate.instant('core.login.sitepolicynotagreederror'); return Promise.reject(error); } else if (error.errorcode === 'dmlwriteexception' && this.textUtils.hasUnicodeData(data)) {