refactor: improve error handling for mpv player

This commit is contained in:
4gray committed 2023-09-17 21:01:23 +02:00
1 parent 1437b26a3d
commit f36fa73500
1 file changed
+5 -2
+5 -2
View File
@@ -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.'
} `,
});
}
})