Skip to content

Commit 7d5f82d

Browse files
authored
Merge pull request #65 from KryptSec/fix/skip-export-on-failed-analysis
fix: skip share prompt when analysis parsing fails
2 parents 3a0e42d + 9ecc48c commit 7d5f82d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function promptExport(
1313
ksmScore?: number,
1414
): Promise<void> {
1515
console.log();
16-
if (!analysis) {
16+
if (!analysis || analysis.parseFailed) {
1717
console.log(colors.gray(' No analysis available — skipping export.'));
1818
console.log(colors.gray(` Run analysis first: oasis analyze ${result.id}`));
1919
console.log(colors.gray(` Then export via: oasis report ${result.id}`));

0 commit comments

Comments
 (0)