Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[eas-cli] Add retroactive code review changes #1147

Merged
merged 9 commits into from
Jun 13, 2022
9 changes: 7 additions & 2 deletions packages/eas-cli/src/metadata/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@ export async function downloadMetadataAsync(metadataCtx: MetadataContext): Promi
}
}

await fs.writeJson(filePath, config.toSchema(), { spaces: 2 });
unsubscribeTelemetry();
try {
await fs.writeJson(filePath, config.toSchema(), { spaces: 2 });
} catch (error) {
throw error;
} finally {
unsubscribeTelemetry();
}

if (errors.length > 0) {
throw new MetadataDownloadError(errors, executionId);
Expand Down