@opengeni/api-router 2.12.4-canary.0 → 2.12.4-canary.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -220,8 +220,14 @@ function extensionForMimeType(mimeType: string): string {
220
220
  }
221
221
 
222
222
  async function commandSucceeds(command: string, args: string[]): Promise<boolean> {
223
- const result = await runCommand(command, args);
224
- return !result.spawnError && result.exitCode === 0;
223
+ try {
224
+ const result = await runCommand(command, args);
225
+ return !result.spawnError && result.exitCode === 0;
226
+ } catch {
227
+ // Some runtimes throw during spawn instead of emitting an error event.
228
+ // An unavailable optional audio tool must not prevent client startup.
229
+ return false;
230
+ }
225
231
  }
226
232
 
227
233
  async function runCommand(