diff options
Diffstat (limited to 'cli/cache/node.rs')
-rw-r--r-- | cli/cache/node.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cli/cache/node.rs b/cli/cache/node.rs index 2f1b1f55f..b19772229 100644 --- a/cli/cache/node.rs +++ b/cli/cache/node.rs @@ -106,16 +106,11 @@ impl NodeAnalysisCache { ) { Ok(cache) => Some(cache), Err(err) => { - let file = self - .db_file_path - .as_ref() - .map(|s| s.to_string_lossy().to_string()) - .unwrap_or_default(); - log::error!("Error creating node analysis cache, file '{file}' may be corrupt: {:#}", err); // should never error here, but if it ever does don't fail if cfg!(debug_assertions) { - panic!("Error creating node analysis cache, file '{file}' may be corrupt: {err:#}"); + panic!("Error creating node analysis cache: {err:#}"); } else { + log::debug!("Error creating node analysis cache: {:#}", err); None } } |