mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-09 01:16:15 -08:00
Refine MPV/VLC launch error handling in the renderer to extract and show error.message when available, preventing unhelpful "[object Object]" messages in the UI. In the Electron backend, ensure failed MPV instances fall through to creation by commenting intent, and wrap spawn in a promise to reliably detect startup failures. On spawn error, clear stored references and reject with a descriptive message that includes the mpv path. Add an exit handler, conditional storage of the process for reuse, and proc.unref for detached runs. Use a short timeout to resolve the promise when spawn succeeds and log startup state. Convert a silent log to console.error and rethrow the error to surface failures to callers. These changes make MPV startup more robust and produce clearer error feedback for debugging and UI notifications.