Skip to content

🎥 Make videos programmatically with React

fix error message

JonnyBurger39ba0ad527b6
diff --git a/packages/core/src/config/input-props.ts b/packages/core/src/config/input-props.ts
index 74ec7c1b3a..4c3c9952c2 100644
--- a/packages/core/src/config/input-props.ts
+++ b/packages/core/src/config/input-props.ts
@@ -44,7 +44,7 @@ export const getInputProps = <
typeof window.remotion_inputProps === 'undefined'
) {
throw new Error(
- 'Cannot call `getInputProps()` - window.remotion_inputProps is not set. This API is not available if you are in the Studio, or while you are rendering server-side.',
+ 'Cannot call `getInputProps()` - window.remotion_inputProps is not set. This API only available if you are in the Studio, or while you are rendering server-side.',
);
}
diff --git a/packages/web-renderer/src/test/input-props.test.tsx b/packages/web-renderer/src/test/input-props.test.tsx
index 3d30ba4f72..c7989027dc 100644
--- a/packages/web-renderer/src/test/input-props.test.tsx
+++ b/packages/web-renderer/src/test/input-props.test.tsx
@@ -41,6 +41,6 @@ test('cannot call getInputProps() while rendering client-side', async () => {
inputProps: {abc: 'abc'},
});
}).rejects.toThrow(
- 'Cannot call `getInputProps()` - window.remotion_inputProps is not set. This API is not available if you are in the Studio, or while you are rendering server-side.',
+ 'Cannot call `getInputProps()` - window.remotion_inputProps is not set. This API is only available if you are in the Studio, or while you are rendering server-side.',
);
});