From 76e864e7b326aff9cbef764d52ad2d9920711eed Mon Sep 17 00:00:00 2001 From: Albert Oudompheng Date: Wed, 4 Feb 2026 23:34:32 +0100 Subject: [PATCH] feat: add more details on missing commands error message --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 3329eec0..d72881cb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -63,7 +63,10 @@ export async function createWindowsInstaller(options: SquirrelWindowsOptions): P ]); if (!hasWine || !hasMono) { - throw new Error('You must install both Mono and Wine on non-Windows'); + const missing = []; + if (!hasWine) missing.push(wineExe); + if (!hasMono) missing.push(monoExe); + throw new Error(`You must install both Mono and Wine on non-Windows. Missing: ${missing.join(', ')}`); } log(`Using Mono: '${monoExe}'`);