Skip to content

Commit

Permalink
Merge pull request #3800 from alfonso-salces/MOBILE-4362
Browse files Browse the repository at this point in the history
MOBILE-4362 messages: Handle disabled messages error
  • Loading branch information
dpalou authored Sep 29, 2023
2 parents 0ec36b4 + 6f50482 commit 54a2e6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addons/messages/services/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2485,7 +2485,7 @@ export class AddonMessagesProvider {

if (response && response[0] && response[0].msgid === -1) {
// 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 {
Expand Down

0 comments on commit 54a2e6e

Please sign in to comment.