Skip to content

Conversation

@agajassi
Copy link
Contributor

This PR will...

Improves error handling in hls.attachMedia(media) when null is passed as a parameter.

Why is this Pull Request needed?

Logging error to the console will benefit users when when attachMedia is called with a null parameter and this feedback will also help avoid potential confusion.

Resolves issues:

#6463

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

agajassi added 4 commits July 15, 2024 22:11
new error detail for attachMedia
trigger error if media is null
unit test for null condition in attachMedia and some spelling mistake corrections in previous tests
update ErrorDetails
@robwalch robwalch added this to the 1.6.0 milestone Jul 16, 2024
omitting `reason` property, since it is the same message
@agajassi agajassi requested a review from robwalch July 16, 2024 16:42
@agajassi agajassi requested a review from robwalch July 18, 2024 20:15
@robwalch robwalch changed the title feature/trigger-attachMedia-error-for-null-parameter Trigger ATTACH_MEDIA_ERROR when calling attachMedia with falsey media argument Jul 18, 2024
agajassi added 2 commits July 19, 2024 11:21
forgot smart quotes
updating test to make it more detailed, and assert error.message
@agajassi agajassi requested a review from robwalch July 19, 2024 18:29
@robwalch robwalch merged commit ed30446 into video-dev:master Jul 20, 2024
@robwalch robwalch linked an issue Jul 20, 2024 that may be closed by this pull request
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.

Improve Error Handling for "attachMedia" with Null

2 participants