🎥 Make videos programmatically with React
better error message
Jonny Burgerf026b8f4b6f2
diff --git a/packages/cli/src/get-filename.ts b/packages/cli/src/get-filename.tsindex 8f2938ca7e..4928e6d1dd 100644--- a/packages/cli/src/get-filename.ts+++ b/packages/cli/src/get-filename.ts@@ -34,19 +34,25 @@ export const getOutputFilename = (}if (codec === 'h264') {if (extension !== 'mp4') {- console.error('The output filename must end in .mp4.');+ console.error(+ 'When using the H264 codec, the output filename must end in .mp4.'+ );process.exit(1);}}if (codec === 'h265') {if (extension !== 'mp4' && extension !== 'hevc') {- console.error('The output filename must end in .mp4 or .hevc.');+ console.error(+ 'When using H265 codec, the output filename must end in .mp4 or .hevc.'+ );process.exit(1);}}if (codec === 'vp8' || codec === 'vp9') {if (extension !== 'webm') {- console.error('The output filename must end in .webm.');+ console.error(+ `When using the ${codec.toUpperCase()} codec, the output filename must end in .webm.`+ );process.exit(1);}}