Merge pull request #3800 from alfonso-salces/MOBILE-4362

MOBILE-4362 messages: Handle disabled messages error
main
Dani Palou 2023-09-29 09:29:53 +02:00 committed by GitHub
commit 54a2e6e14b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2485,7 +2485,7 @@ export class AddonMessagesProvider {
if (response && response[0] && response[0].msgid === -1) { if (response && response[0] && response[0].msgid === -1) {
// There was an error, and it should be translated already. // There was an error, and it should be translated already.
throw new CoreError(response[0].errormessage); throw new CoreWSError({ message: response[0].errormessage, errorcode: 'sendmessageerror' });
} }
try { try {