From 7e07be5d28225fe15ccfe2f644afe68f0165bdeb Mon Sep 17 00:00:00 2001 From: Marcel Levstek <62072754+marcellevstek@users.noreply.github.com> Date: Wed, 6 Nov 2024 13:47:33 +0100 Subject: [PATCH] Enhance error reporting in download method --- src/resdk/resolwe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resdk/resolwe.py b/src/resdk/resolwe.py index 447b330a..e31ec803 100644 --- a/src/resdk/resolwe.py +++ b/src/resdk/resolwe.py @@ -543,7 +543,7 @@ def _download_files( computed_md5 = md5(os.path.join(download_dir, file_path, file_name)) if expected_md5 != computed_md5: raise ValueError( - f"Checksum of downloaded file {file_name} does not match the expected value." + f"Checksum ({computed_md5}) of downloaded file {file_name} does not match the expected value of {expected_md5}." ) def data_usage(self, **query_params):