Skip to content

🎥 Make videos programmatically with React

progress string

Jonny Burger8f7a8f1b00b3
diff --git a/packages/lambda/src/cli/commands/render/progress.ts b/packages/lambda/src/cli/commands/render/progress.ts
index d321ee0679..8f63f678c3 100644
--- a/packages/lambda/src/cli/commands/render/progress.ts
+++ b/packages/lambda/src/cli/commands/render/progress.ts
@@ -2,7 +2,6 @@ import {CliInternals} from '@remotion/cli';
import {Internals} from 'remotion';
import {CleanupInfo, EncodingProgress, RenderProgress} from '../../../defaults';
import {ChunkRetry} from '../../../functions/helpers/get-retry-stats';
-import {EnhancedErrorInfo} from '../../../functions/helpers/write-lambda-error';
import {formatBytes} from '../../helpers/format-bytes';
type LambdaInvokeProgress = {
@@ -168,30 +167,6 @@ export const makeMultiProgressFromStatus = (
};
};
-const makeErrors = (errors: EnhancedErrorInfo[]) => {
- if (errors.length === 0) {
- return null;
- }
-
- return errors
- .map((err) => {
- if (err.willRetry) {
- if (err.chunk === null) {
- return `Error while preparing render (will retry): ${err.message}`;
- }
-
- return `Error in chunk (will retry) ${err.chunk}: ${err.message}`;
- }
-
- if (err.chunk === null) {
- return `Error during preparation: ${err.message}`;
- }
-
- return `Error in chunk ${err.chunk}: ${err.message}`;
- })
- .join('\n');
-};
-
type DownloadedInfo = {
totalSize: number;
downloaded: number;
@@ -202,13 +177,11 @@ export const makeProgressString = ({
progress,
steps,
downloadInfo,
- errors,
retriesInfo,
}: {
progress: MultiRenderProgress;
steps: number;
downloadInfo: DownloadedInfo | null;
- errors: EnhancedErrorInfo[];
retriesInfo: ChunkRetry[];
}) => {
return [
@@ -218,7 +191,6 @@ export const makeProgressString = ({
invokeProgress: progress.lambdaInvokeProgress,
totalSteps: steps,
}),
- makeErrors(errors),
makeEncodingProgress({
encodingProgress: progress.encodingProgress,
chunkProgress: progress.chunkProgress,
diff --git a/packages/lambda/src/cli/commands/render/render.ts b/packages/lambda/src/cli/commands/render/render.ts
index c21c145e3e..fa6df20db8 100644
--- a/packages/lambda/src/cli/commands/render/render.ts
+++ b/packages/lambda/src/cli/commands/render/render.ts
@@ -135,7 +135,6 @@ export const renderCommand = async (args: string[]) => {
progressBar.update(
makeProgressString({
progress: multiProgress,
- errors: status.errors,
steps: totalSteps,
downloadInfo: null,
retriesInfo: status.retriesInfo,
@@ -155,7 +154,6 @@ export const renderCommand = async (args: string[]) => {
makeProgressString({
progress: newProgress,
steps: totalSteps,
- errors: newStatus.errors,
retriesInfo: newStatus.retriesInfo,
downloadInfo: null,
})
@@ -168,7 +166,6 @@ export const renderCommand = async (args: string[]) => {
progress: newProgress,
steps: totalSteps,
downloadInfo: null,
- errors: newStatus.errors,
retriesInfo: newStatus.retriesInfo,
})
);
@@ -184,7 +181,6 @@ export const renderCommand = async (args: string[]) => {
makeProgressString({
progress: newProgress,
steps: totalSteps,
- errors: newStatus.errors,
retriesInfo: newStatus.retriesInfo,
downloadInfo: {
doneIn: null,
@@ -199,7 +195,6 @@ export const renderCommand = async (args: string[]) => {
makeProgressString({
progress: newProgress,
steps: totalSteps,
- errors: newStatus.errors,
retriesInfo: newStatus.retriesInfo,
downloadInfo: {
doneIn: Date.now() - downloadStart,