Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
return audio errors to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandawg93 committed Aug 2, 2020
1 parent 8ee1062 commit ad98194
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ffmpeg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ export class FfmpegProcess {
if (code == null || code === 255) {
log.debug(message + ` (${title} Stream stopped gracefully.)`);
} else {
log.error(message + ' (error)');
if (title.toLowerCase().includes('return')) {
log.debug(message + ' (error)');
} else {
log.error(message + ' (error)');
}
if (callback) {
if (!started) {
callback(new Error(message));
Expand Down

0 comments on commit ad98194

Please sign in to comment.