Skip to content

Commit

Permalink
Polish error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
haiqi96 committed Dec 18, 2024
1 parent 55c0f36 commit 2d7443e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2d7443e

Please sign in to comment.