fix: npe from API.lockfile_info.version (#5193)

This commit is contained in:
Myles Scolnick 2024-11-13 01:04:20 -05:00 committed by GitHub
parent 2bc7e4a682
commit 885e4bc74d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ export async function initializePackageIndex(
if (lockfile.info.version !== API.version) {
throw new Error(
"Lock file version doesn't match Pyodide version.\n" +
` lockfile version: ${API.lockfile_info.version}\n` +
` lockfile version: ${lockfile.info.version}\n` +
` pyodide version: ${API.version}`,
);
}