Skip to content

Commit bc55ca1

Browse files
authored
fix(web): Fix error message when calling setupPlayer twice (#2364)
1 parent a89d785 commit bc55ca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/TrackPlayer/Player.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class Player {
3939
if (typeof window === 'undefined') return;
4040
if (this.hasInitialized === true) {
4141
// TODO: double check the structure of this error message
42-
throw { code: 'player_already_initialized', message: 'The player is not initialized. Call setupPlayer first.' };
42+
throw { code: 'player_already_initialized', message: 'The player has already been initialized via setupPlayer.' };
4343
}
4444

4545
// @ts-ignore

0 commit comments

Comments
 (0)