mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Change error wording
This commit is contained in:
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user