From 2d7443e72ce0e29c110813a62f14ddc6f47d8cda Mon Sep 17 00:00:00 2001 From: Haiqi Xu <14502009+haiqi96@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:36:42 -0500 Subject: [PATCH] Polish error messages. --- .../clp_package_utils/scripts/decompress.py | 6 ++++-- .../clp-package-utils/clp_package_utils/scripts/search.py | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/components/clp-package-utils/clp_package_utils/scripts/decompress.py b/components/clp-package-utils/clp_package_utils/scripts/decompress.py index 9fdbeee34..092c339a6 100755 --- a/components/clp-package-utils/clp_package_utils/scripts/decompress.py +++ b/components/clp-package-utils/clp_package_utils/scripts/decompress.py @@ -83,7 +83,7 @@ def handle_extract_file_cmd( storage_type = clp_config.archive_output.storage.type if StorageType.FS != storage_type: - logger.error(f"File extraction is not supported for storage type: {storage_type}.") + logger.error(f"File extraction is not supported for archive storage type: {storage_type}.") return -1 container_name = generate_container_name(str(JobType.FILE_EXTRACTION)) @@ -163,7 +163,9 @@ def handle_extract_stream_cmd( storage_type = clp_config.archive_output.storage.type if StorageType.FS != storage_type: - logger.error(f"Stream extraction is not supported for storage type: {storage_type}.") + logger.error( + f"Stream extraction is not supported for archive storage type: {storage_type}." + ) return -1 container_name = generate_container_name(str(JobType.IR_EXTRACTION)) diff --git a/components/clp-package-utils/clp_package_utils/scripts/search.py b/components/clp-package-utils/clp_package_utils/scripts/search.py index af3693b16..ee50ecf02 100755 --- a/components/clp-package-utils/clp_package_utils/scripts/search.py +++ b/components/clp-package-utils/clp_package_utils/scripts/search.py @@ -77,7 +77,9 @@ def main(argv): storage_type = clp_config.archive_output.storage.type if StorageType.FS != storage_type: - logger.error(f"Search is not supported for storage type: {storage_type}.") + logger.error( + f"Search is not supported for archive storage type: {storage_type}." + ) return -1 container_name = generate_container_name(str(JobType.SEARCH))