From 7172d24512aeffe977fc9d8a617860bfa3b33e84 Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Sun, 11 Aug 2024 17:21:19 -0700 Subject: [PATCH] add message if fail to remove_dir_all after compose deploy --- bin/periphery/src/compose.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/periphery/src/compose.rs b/bin/periphery/src/compose.rs index 5c053156b..80f42d3c0 100644 --- a/bin/periphery/src/compose.rs +++ b/bin/periphery/src/compose.rs @@ -173,7 +173,7 @@ pub async fn compose_up( res.logs.push(log); if let Err(e) = fs::remove_dir_all(&root).await.with_context(|| { - format!("failed to clean up files after deploy | path: {root:?}") + format!("failed to clean up files after deploy | path: {root:?} | ensure all volumes are mounted outside the repo directory (preferably use absolute path for mounts)") }) { res .logs @@ -286,7 +286,9 @@ async fn write_stack( } else { // Ensure run directory exists fs::create_dir_all(&run_directory).await.with_context(|| { - format!("failed to create stack run directory at {run_directory:?}") + format!( + "failed to create stack run directory at {run_directory:?}" + ) })?; let env_file_path = match write_environment_file( &stack.config.environment,