Skip to content

Commit

Permalink
MOBILE-4362 messages: Handle disabled messages error
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonso-salces committed Sep 29, 2023
1 parent 57d21e2 commit 6f50482
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 6f50482

Please sign in to comment.