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}'`);