From daf4adb56447bb12bf8b5861cf6a61668a736d9b Mon Sep 17 00:00:00 2001 From: RichieHakim Date: Tue, 2 Apr 2024 14:26:44 -0400 Subject: [PATCH] Update error messages in check_files_openable function --- bnpm/path_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bnpm/path_helpers.py b/bnpm/path_helpers.py index ecee5c5..aa6f828 100644 --- a/bnpm/path_helpers.py +++ b/bnpm/path_helpers.py @@ -386,7 +386,7 @@ def check_file_openable(file_path): print(f"File {file_path} can be opened.") if verbose > 1 else None return True except Exception as e: - print(f"File {file_path} could not be opened: {e}") if verbose > 0 else None + print(f"FAILURE: File {file_path} could not be opened: {e}") if verbose > 0 else None return False def check_with_timeout(file_path, time_limit): @@ -395,7 +395,7 @@ def check_with_timeout(file_path, time_limit): try: return future.result(timeout=time_limit) except TimeoutError: - print(f"File {file_path} took too long to open.") if verbose > 0 else None + print(f"FAILURE: File {file_path} took too long to open.") if verbose > 0 else None return False def walk_files(dir_outer):