From d8cad7c4daf93ebc85dc4276e5f1352e356e9267 Mon Sep 17 00:00:00 2001 From: grumbach Date: Fri, 25 Oct 2024 12:46:04 +0900 Subject: [PATCH] ci: fix upload download from different clients --- .github/workflows/memcheck.yml | 2 +- autonomi-cli/src/actions/download.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/memcheck.yml b/.github/workflows/memcheck.yml index c2e5406207..cbfb52d4cc 100644 --- a/.github/workflows/memcheck.yml +++ b/.github/workflows/memcheck.yml @@ -70,7 +70,7 @@ jobs: shell: bash - name: File upload - run: ./target/release/autonomi --log-output-dest=data-dir file upload "./the-test-data.zip" > ./upload_output 2>&1 + run: ./target/release/autonomi --log-output-dest=data-dir file upload --public "./the-test-data.zip" > ./upload_output 2>&1 env: SN_LOG: "v" timeout-minutes: 5 diff --git a/autonomi-cli/src/actions/download.rs b/autonomi-cli/src/actions/download.rs index 7beb3578f1..ff737ac2c1 100644 --- a/autonomi-cli/src/actions/download.rs +++ b/autonomi-cli/src/actions/download.rs @@ -26,7 +26,7 @@ pub async fn download(addr: &str, dest_path: &str, client: &mut Client) -> Resul match (public_address, private_address) { (Some(public_address), _) => download_public(addr, public_address, dest_path, client).await, (_, Some(private_address)) => download_private(addr, private_address, dest_path, client).await, - _ => Err(eyre!("Failed to parse data address")) + _ => Err(eyre!("Failed to parse data address {addr}")) .with_suggestion(|| "Public addresses look like this: 0037cfa13eae4393841cbc00c3a33cade0f98b8c1f20826e5c51f8269e7b09d7") .with_suggestion(|| "Private addresses look like this: 1358645341480028172") .with_suggestion(|| "Try the `file list` command to get addresses you have access to"),