fix: Improved the first-time run behavior so that it outputs the default configuration file it tries to load to help users locate the file on first-runs

This commit is contained in:
2026-01-30 15:36:26 -07:00
parent c791b985f0
commit a2aa9507a9
5 changed files with 120 additions and 152 deletions
+4 -4
View File
@@ -346,11 +346,11 @@ pub struct AppConfig {
}
impl AppConfig {
pub fn validate(&self) {
pub fn validate(&self, config_path: &str) {
if self.lidarr.is_none() && self.radarr.is_none() && self.sonarr.is_none() {
log_and_print_error(
"No Servarr configuration provided in the specified configuration file".to_owned(),
);
log_and_print_error(format!(
"No Servarrs are configured in the file: {config_path}"
));
process::exit(1);
}