fix: add error message to logs

This commit is contained in:
gauthier-th
2025-09-30 14:50:15 +02:00
parent 98c4db3b19
commit bbf344bcbb

View File

@@ -41,9 +41,10 @@ const migrationArrTags = async (settings: any): Promise<AllSettings> => {
label: userTag.label.replace(`${user.id} - `, `${user.id}-`),
});
}
} catch {
} catch (error) {
console.error(
`Unable to rename Radarr tags to the new format. Please check your Radarr connection settings for the instance "${radarrSettings.name}".`
`Unable to rename Radarr tags to the new format. Please check your Radarr connection settings for the instance "${radarrSettings.name}".`,
error.message
);
errorOccurred = true;
}
@@ -71,9 +72,10 @@ const migrationArrTags = async (settings: any): Promise<AllSettings> => {
label: userTag.label.replace(`${user.id} - `, `${user.id}-`),
});
}
} catch {
} catch (error) {
console.error(
`Unable to rename Sonarr tags to the new format. Please check your Sonarr connection settings for the instance "${sonarrSettings.name}".`
`Unable to rename Sonarr tags to the new format. Please check your Sonarr connection settings for the instance "${sonarrSettings.name}".`,
error.message
);
errorOccurred = true;
}