MOBILE-4270 lang: Solve error details not being shown

main
Pau Ferrer Ocaña 2023-05-10 12:11:19 +02:00
parent 9f850816be
commit 013a55a5a4
2 changed files with 2 additions and 2 deletions

View File

@ -2310,7 +2310,7 @@
"core.selectagroup": "moodle", "core.selectagroup": "moodle",
"core.send": "message", "core.send": "message",
"core.sending": "chat", "core.sending": "chat",
"core.serverconnection": "error", "core.serverconnection": "local_moodlemobileapp",
"core.settings.about": "local_moodlemobileapp", "core.settings.about": "local_moodlemobileapp",
"core.settings.accessstatement": "access", "core.settings.accessstatement": "access",
"core.settings.appsettings": "local_moodlemobileapp", "core.settings.appsettings": "local_moodlemobileapp",

View File

@ -538,7 +538,7 @@ export class CoreTextUtilsProvider {
* @returns Error message, undefined if not found. * @returns Error message, undefined if not found.
*/ */
getErrorMessageFromError(error?: CoreAnyError): string | undefined { getErrorMessageFromError(error?: CoreAnyError): string | undefined {
if (typeof error == 'string') { if (typeof error === 'string') {
return error; return error;
} }