Skip to content

Commit

Permalink
Plex throw better errors on failure to update
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed Apr 5, 2024
1 parent 4b507f0 commit 50f613a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/Downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ export class VideoDownloader {
await video.postProcessingCommand().catch((err) => logger.log(`postProcessingCommand failed! ${err.message}\n`));
}

if (settings.plex.enabled) await this.updatePlex();
if (settings.plex.enabled) {
await this.updatePlex().catch((err) => {
throw new Error(`Updating plex failed! ${err.message}`);
});
}
}
// eslint-disable-next-line no-fallthrough
case Video.State.Muxed: {
Expand Down

0 comments on commit 50f613a

Please sign in to comment.