fix(tts): fix lint errors in pocket-tts
- Remove unused catch parameter in checkPocketHealth - Cast unknown error to String in template literal
This commit is contained in:
parent
498f112f74
commit
3d8edab371
@ -1195,9 +1195,8 @@ async function checkPocketHealth(baseUrl: string, timeoutMs: number): Promise<bo
|
||||
} finally {
|
||||
clearTimeout(timeout);
|
||||
}
|
||||
} catch (err) {
|
||||
// Only log on explicit check, not during polling (too noisy)
|
||||
// logVerbose(`TTS: pocket health check failed: ${err instanceof Error ? err.message : err}`);
|
||||
} catch {
|
||||
// Swallow errors - server not reachable is expected when not running
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -1304,7 +1303,9 @@ async function startPocketServer(config: ResolvedTtsConfig["pocket"]): Promise<b
|
||||
pocketLastFailure = Date.now();
|
||||
return false;
|
||||
} catch (err) {
|
||||
logVerbose(`TTS: Failed to start pocket-tts: ${err instanceof Error ? err.message : err}`);
|
||||
logVerbose(
|
||||
`TTS: Failed to start pocket-tts: ${err instanceof Error ? err.message : String(err)}`,
|
||||
);
|
||||
pocketLastFailure = Date.now();
|
||||
return false;
|
||||
} finally {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user