MCPcopy
hub / github.com/remotion-dev/remotion / getErrorStackWithMessage

Function getErrorStackWithMessage

packages/core/src/cancel-render.ts:4–7  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

2
3// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/stack
4export const getErrorStackWithMessage = (error: Error): string => {
5 const stack = error.stack ?? '';
6 return stack.startsWith('Error:') ? stack : `${error.message}\n${stack}`;
7};
8
9const isErrorLike = (err: unknown): boolean => {
10 if (err instanceof Error) {

Callers 2

delayRenderInternalFunction · 0.85
cancelRenderInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…