Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eTransl error callback #52

Merged
merged 2 commits into from
May 15, 2024
Merged

eTransl error callback #52

merged 2 commits into from
May 15, 2024

Conversation

SrdjanStevanetic
Copy link
Contributor

No description provided.

@@ -21,17 +21,22 @@ public void onMessage(Message message, byte[] pattern) {
LOGGER.debug("New message received from RedisMessageListener: {}", message);
}
String messageBody=new String(message.getBody(), StandardCharsets.UTF_8);
if(messageBody.contains(ETranslationTranslationService.eTranslationErrorCallbackIndicator)) {
//if we enter here, means the eTranslation error callback is called
this.message=null;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should throw and exception in this case, cause the API to return an error response

@gsergiu gsergiu merged commit 49030b3 into develop May 15, 2024
1 of 2 checks passed
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.

2 participants