mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-02 21:33:52 +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 => {
|
const requireSync = <T>(value: MaybePromise<T>, getterName: string, asyncName: string): T => {
|
||||||
if (value instanceof Promise) {
|
if (value instanceof Promise) {
|
||||||
throw new Error(
|
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;
|
return value;
|
||||||
|
|||||||
Reference in New Issue
Block a user