diff --git a/packages/nx/src/native/workspace/files_archive.rs b/packages/nx/src/native/workspace/files_archive.rs index 9517314f5f7e39..e04b50d941ee84 100644 --- a/packages/nx/src/native/workspace/files_archive.rs +++ b/packages/nx/src/native/workspace/files_archive.rs @@ -58,9 +58,11 @@ pub fn read_files_archive>(cache_dir: P) -> Option Some(archive), + Ok(archive) => { + trace!("read archive in {:?}", now.elapsed()); + Some(archive) + } Err(e) => { trace!("could not read files archive: {:?}", e); None @@ -77,9 +79,11 @@ pub fn write_files_archive>(cache_dir: P, files: NxFilesArchive) std::fs::write(archive_path, encoded)?; Ok(()) }); - trace!("write archive in {:?}", now.elapsed()); + match result { - Ok(_) => (), + Ok(_) => { + trace!("write archive in {:?}", now.elapsed()); + } Err(e) => { trace!("could not write files archive: {:?}", e); }