Skip to content

Commit ebd6760

Browse files
debug
1 parent 584c67a commit ebd6760

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/@pglt/pglt/scripts/generate-packages.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function downloadSchema(releaseTag, githubToken) {
3737
async function downloadAsset(platform, arch, os, releaseTag, githubToken) {
3838
const buildName = getBuildName(platform, arch);
3939

40-
// https://github.com/supabase-community/postgres_lsp/releases/download/0.1.0/pglt_x86_64_windows-msvc
40+
// https://github.com/supabase-community/postgres_lsp/releases/download/0.1.0/pglt_x86_64_pc-windows-msvc
4141
// https://github.com/supabase-community/postgres_lsp/releases/download/0.1.0/pglt_x86_64-pc-windows-msvc
4242
const assetUrl = `https://github.com/supabase-community/postgres_lsp/releases/download/${releaseTag}/${buildName}`;
4343

@@ -49,7 +49,8 @@ async function downloadAsset(platform, arch, os, releaseTag, githubToken) {
4949
});
5050

5151
if (!response.ok) {
52-
throw new Error(`Failed to Fetch Asset from ${assetUrl}`);
52+
const error = await response.text();
53+
throw new Error(`Failed to Fetch Asset from ${assetUrl}. Reason: ${error}`);
5354
}
5455

5556
// just download to root.

0 commit comments

Comments
 (0)