fix(services): improve logging for adding movies to Radarr

pull/238/head
sct 4 years ago
parent 0658b7943e
commit 6c1ee830a1

@ -1,4 +1,5 @@
import Axios, { AxiosInstance } from 'axios';
import logger from '../logger';
interface RadarrMovieOptions {
title: string;
@ -96,6 +97,11 @@ class RadarrAPI {
return response.data;
} catch (e) {
logger.error('Something went wrong adding a movie to Radarr', {
label: 'Radarr',
message: e.message,
options,
});
throw new Error(`[Radarr] Failed to add movie: ${e.message}`);
}
};

Loading…
Cancel
Save