mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-07 01:56:04 +00:00
fix(cli): await error telemetry before finalization
This commit is contained in:
@@ -447,7 +447,7 @@ async function executeCli(): Promise<void> {
|
||||
result = commandResultForError(error);
|
||||
if (!(error instanceof CliResultSignal)) {
|
||||
commandFailed = true;
|
||||
reportCommandFailure(command, error);
|
||||
await reportCommandFailure(command, error);
|
||||
const typed = error instanceof CliUsageError || error instanceof CliRuntimeError;
|
||||
if (error instanceof CliUsageError && !error.result.presented) await showRequestedUsage();
|
||||
if (!typed || !error.result.presented) {
|
||||
|
||||
Reference in New Issue
Block a user