Skip to content

Commit 8652bfd

Browse files
Copilotaviraxp
andcommitted
Improve retry error messages and whitespace handling
Co-authored-by: aviraxp <18079988+aviraxp@users.noreply.github.com>
1 parent 0271f1e commit 8652bfd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/fetch-data.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,9 +569,9 @@ async function extractModulePropsFromZip(downloadUrl: string): Promise<Record<st
569569
maxBuffer: 64 * 1024 // 64KB buffer
570570
});
571571

572-
// Check if content is empty - treat as failure and retry
573-
if (!modulePropContent) {
574-
throw new Error('Empty content returned from runzip');
572+
// Check if content is empty or only whitespace - treat as failure and retry
573+
if (!modulePropContent || !modulePropContent.trim()) {
574+
throw new Error(`Empty content returned from runzip for URL: ${downloadUrl}`);
575575
}
576576

577577
// Parse module.prop content

0 commit comments

Comments
 (0)