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

Use error codes in error reporting #86

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

stonko1994
Copy link
Contributor

Description

When reporting playback errors, we build an error message based on the error code + its message. However, since the switch to Kotlin was made for the ErrorCode, it no longer reports the numeric value but instead reports the error name. This was unintentional, and this PR reverts to the error code.

Changes

Using the errorCode numeric value when building the error message which is reported to conviva.

Copy link
Contributor

@zigavehovec zigavehovec left a comment

Choose a reason for hiding this comment

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

Nice, thank you for taking care of this one 👌

@@ -600,15 +600,15 @@ private synchronized void transitionState(ConvivaSdkConstants.PlayerState state)
};

private final EventListener<PlayerEvent.Error> onPlayerErrorListener = event -> {
Log.d(TAG, "[Player Event] Error");
Log.d(TAG, "[Player Event] Error - " + event.getCode().getValue());
Copy link
Contributor

Choose a reason for hiding this comment

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

Mini nit: extract the code into a variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@stonko1994 stonko1994 merged commit 3b8b042 into develop Jan 27, 2025
3 checks passed
@stonko1994 stonko1994 deleted the feature/use-error-codes-in-error-reporting branch January 27, 2025 11:10
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