From 62ac6d9dae9368ffbe2e51896f36577d62cf7e16 Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Wed, 15 Apr 2026 08:27:34 +0200 Subject: [PATCH] Change error wording --- src/input-track.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input-track.ts b/src/input-track.ts index a735425..bf14088 100644 --- a/src/input-track.ts +++ b/src/input-track.ts @@ -474,7 +474,8 @@ export abstract class InputTrack { const requireSync = (value: MaybePromise, getterName: string, asyncName: string): T => { if (value instanceof Promise) { throw new Error( - `'${getterName}' is not available synchronously for this track. Use '${asyncName}()' instead.`, + `'${getterName}' is deprecated and not available synchronously for this track. Use the preferred` + + ` '${asyncName}()' instead.`, ); } return value;