diff --git a/tts_service/src/model/model_cache.rs b/tts_service/src/model/model_cache.rs index 0ef15c26a1..24515cdba7 100644 --- a/tts_service/src/model/model_cache.rs +++ b/tts_service/src/model/model_cache.rs @@ -57,7 +57,10 @@ impl ModelCache { lock.insert(filename.to_string(), arc.clone()); Some(arc) }, - Err(_) => None, + Err(e) => { + warn!("There was an error loading the model `{:?}`: {}", file_path, e); + None + }, } } @@ -84,7 +87,10 @@ impl ModelCache { lock.insert(filename.to_string(), arc.clone()); Some(arc) }, - Err(_) => None, + Err(e) => { + warn!("There was an error loading the model `{:?}`: {}", file_path, e); + None + }, } }