Skip to content

🎥 Make videos programmatically with React

Update install-whisper-cpp.ts

Jonny Burger7bfe53530cfb
diff --git a/packages/install-whisper-cpp/src/install-whisper-cpp.ts b/packages/install-whisper-cpp/src/install-whisper-cpp.ts
index dbd55afa22..80ecf2dd07 100644
--- a/packages/install-whisper-cpp/src/install-whisper-cpp.ts
+++ b/packages/install-whisper-cpp/src/install-whisper-cpp.ts
@@ -151,8 +151,8 @@ export const installWhisperCpp = async ({
if (existsSync(to)) {
if (!existsSync(getWhisperExecutablePath(to))) {
if (printOutput) {
- console.log(
- `Whisper folder exists but the executable (${to}) is missing. Delete ${to} and try again.`,
+ throw new Error(
+ `Whisper folder ${to} exists but the executable (${getWhisperExecutablePath(to)}) is missing. Delete ${to} and try again.`,
);
}