Skip to content

Commit 312b1f4

Browse files
absidueSudharakaP
authored andcommitted
Avoid logging an error when a player cache entry does not exist (FreeTubeApp#6640)
1 parent 696e0c6 commit 312b1f4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,12 @@ function runApp() {
11261126

11271127
return contents.buffer
11281128
} catch (e) {
1129-
console.error(e)
1129+
// Don't log the error if the file doesn't exist as we'll just fetch it from YouTube
1130+
// this usually happens when YouTube updates their player JavaScript
1131+
if (e.code !== 'ENOENT') {
1132+
console.error(e)
1133+
}
1134+
11301135
return undefined
11311136
}
11321137
})

0 commit comments

Comments
 (0)