Skip to content

Commit

Permalink
fix(web): Fix error message when calling setupPlayer twice (#2364)
Browse files Browse the repository at this point in the history
  • Loading branch information
hazelmeow authored Nov 26, 2024
1 parent a89d785 commit bc55ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/TrackPlayer/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class Player {
if (typeof window === 'undefined') return;
if (this.hasInitialized === true) {
// TODO: double check the structure of this error message
throw { code: 'player_already_initialized', message: 'The player is not initialized. Call setupPlayer first.' };
throw { code: 'player_already_initialized', message: 'The player has already been initialized via setupPlayer.' };
}

// @ts-ignore
Expand Down

0 comments on commit bc55ca1

Please sign in to comment.