From e629f615324379b44cbe79319b7a0c6dd729b215 Mon Sep 17 00:00:00 2001 From: Trevor North Date: Fri, 30 Jan 2026 10:10:29 +0000 Subject: [PATCH] Handle postinstall binary download error A failure to fetch from GitHub should fail the postinstall rather than silently leaving the stub bin in place. --- js/postinstall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/postinstall.js b/js/postinstall.js index e1ac8efe..1e089d19 100644 --- a/js/postinstall.js +++ b/js/postinstall.js @@ -77,7 +77,7 @@ const downloadBinaryFromGitHub = async (downloadUrl, outputPath) => { fs.chmodSync(outputPath, 0o755) console.log('Binary downloaded successfully!') } catch (err) { - console.error('Error downloading binary:', err.message) + handleError(`Error downloading binary: ${err.message}`) } }