Skip to content

Commit

Permalink
fix: check whether stack exist
Browse files Browse the repository at this point in the history
  • Loading branch information
TrickyPi committed Dec 13, 2022
1 parent a4e5c9a commit eaa82e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function handleError(error: RollupError, recover = false): void {
}

if (error.stack) {
stderr(dim(error.stack.replace(`${nameSection}${error.message}\n`, '')));
stderr(dim(error.stack?.replace(`${nameSection}${error.message}\n`, '')));
}

stderr('');
Expand Down

0 comments on commit eaa82e3

Please sign in to comment.