From 013a55a5a40c7723949aebf6778e1c11dd85b7f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 10 May 2023 12:11:19 +0200 Subject: [PATCH] MOBILE-4270 lang: Solve error details not being shown --- scripts/langindex.json | 2 +- src/core/services/utils/text.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/langindex.json b/scripts/langindex.json index be036f607..ff66ad49d 100644 --- a/scripts/langindex.json +++ b/scripts/langindex.json @@ -2310,7 +2310,7 @@ "core.selectagroup": "moodle", "core.send": "message", "core.sending": "chat", - "core.serverconnection": "error", + "core.serverconnection": "local_moodlemobileapp", "core.settings.about": "local_moodlemobileapp", "core.settings.accessstatement": "access", "core.settings.appsettings": "local_moodlemobileapp", diff --git a/src/core/services/utils/text.ts b/src/core/services/utils/text.ts index d5e478100..23596a41f 100644 --- a/src/core/services/utils/text.ts +++ b/src/core/services/utils/text.ts @@ -538,7 +538,7 @@ export class CoreTextUtilsProvider { * @returns Error message, undefined if not found. */ getErrorMessageFromError(error?: CoreAnyError): string | undefined { - if (typeof error == 'string') { + if (typeof error === 'string') { return error; }