Skip to content

feat: add ed error_code to AI Worker messages#4533

Merged
riccio82 merged 4 commits intodevelopfrom
alternative-translation-error-code
Apr 27, 2026
Merged

feat: add ed error_code to AI Worker messages#4533
riccio82 merged 4 commits intodevelopfrom
alternative-translation-error-code

Conversation

@mauretto78
Copy link
Copy Markdown
Contributor

@mauretto78 mauretto78 commented Apr 27, 2026

Added errorcode` to AI Worker messages

To all messages was added the property error_code.

Error map

const array codeErrorsMap = [
      'NO_ERROR' => 0,
      'NO_ALTERNATIVE_TRANSLATIONS_FOUND' => 1,
      'ERROR_GENERATING_ALTERNATIVE_TRANSLATIONS' => 2,
      'NO_ERROR_MESSAGE' => 3,
      'OTHER_ERROR' => 4,
  ];

@riccio82 riccio82 merged commit 11f25ca into develop Apr 27, 2026
9 checks passed
@riccio82 riccio82 deleted the alternative-translation-error-code branch April 27, 2026 15:20
Ostico pushed a commit that referenced this pull request Apr 28, 2026
* feat: add ed error_code to AI Worker messages

* fixed phpstan

* fixed phpstan

* FE integration

---------

Co-authored-by: pierluigi.dicianni <pierluigi.dicianni@translated.net>
riccio82 pushed a commit that referenced this pull request Apr 28, 2026
* feat: add ed error_code to AI Worker messages

* fixed phpstan

* fixed phpstan

* FE integration

---------

Co-authored-by: pierluigi.dicianni <pierluigi.dicianni@translated.net>
riccio82 pushed a commit that referenced this pull request Apr 28, 2026
* feat: add ed error_code to AI Worker messages

* fixed phpstan

* fixed phpstan

* FE integration

---------

Co-authored-by: pierluigi.dicianni <pierluigi.dicianni@translated.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants