Change error wording

This commit is contained in:
Vanilagy
2026-04-15 08:27:34 +02:00
parent d9f12c0c7a
commit 62ac6d9dae
+2 -1
View File
@@ -474,7 +474,8 @@ export abstract class InputTrack {
const requireSync = <T>(value: MaybePromise<T>, 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;