Skip to content

🎥 Make videos programmatically with React

Include targetLine in error message for better debugging

pullfrog[bot]725825a059d3
diff --git a/packages/studio-server/src/codemods/update-sequence-props.ts b/packages/studio-server/src/codemods/update-sequence-props.ts
index e688180c78..2c7c1ef38b 100644
--- a/packages/studio-server/src/codemods/update-sequence-props.ts
+++ b/packages/studio-server/src/codemods/update-sequence-props.ts
@@ -41,7 +41,7 @@ export const updateSequenceProps = async ({
});
if (!attr || attr.type === 'JSXSpreadAttribute') {
- throw new Error(`Could not find attribute "${key}" on the JSX element`);
+ throw new Error(`Could not find attribute "${key}" on the JSX element at line ${targetLine}`);
}
const parsed = (