Skip to content

Commit dfcef36

Browse files
committed
fix: throw error when version not exist
1 parent 76aaabb commit dfcef36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/site/components/withDownloadArchive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const WithDownloadArchive: FC<WithDownloadArchiveProps> = async ({
2727
const version = extractVersionFromPath(pathname);
2828

2929
if (version == null) {
30-
return null;
30+
throw new Error('Version could not be extracted from pathname');
3131
}
3232

3333
// Find the release data for the given version

0 commit comments

Comments
 (0)