improvement: started translation of backend errors

This commit is contained in:
canove
2020-10-13 06:50:00 -03:00
parent 09f8ef9be0
commit 011d8d5dfe
15 changed files with 100 additions and 54 deletions

View File

@@ -25,9 +25,7 @@ const DeleteWhatsAppMessage = async (messageId: string): Promise<Message> => {
try {
await messageToDelete.delete(true);
} catch (err) {
throw new AppError(
"Couldn't delete message from WhatsApp. Check connections page."
);
throw new AppError("ERR_DELETE_WAPP_MSG");
}
await message.update({ isDeleted: true });