mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
refactor: improve error handling for mpv player
This commit is contained in:
1 parent
1437b26a3d
commit
f36fa73500
1 file changed
+5
-2
+5
-2
@@ -249,8 +249,11 @@ export class Api {
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
event.sender.send(ERROR, {
|
||||
message:
|
||||
'Error: Something went wrong. Make sure that mpv player is installed on your system.',
|
||||
message: `Error: ${
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
||||
error?.verbose ??
|
||||
'Something went wrong. Make sure that mpv player is installed on your system.'
|
||||
} `,
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user