Skip to content

Commit

Permalink
chore: add disclaimer to error data parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
martinstark committed Feb 10, 2023
1 parent 7e31b14 commit 6aae41c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/tutorials/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const vodManifestNotFoundHandler = (event /* shaka.net.NetworkingEngine.RetryEve

if (code === shaka.util.Error.Code.BAD_HTTP_STATUS) {
if (
// each type of error has its own data structure (or none at all), tread with care
Array.isArray(data) &&
data[1] === 404 &&
data[4] === shaka.net.NetworkingEngine.RequestType.MANIFEST
Expand Down

0 comments on commit 6aae41c

Please sign in to comment.