Skip to content

Commit

Permalink
Update error messages in check_files_openable function
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieHakim committed Apr 2, 2024
1 parent b9c4ce8 commit daf4adb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bnpm/path_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit daf4adb

Please sign in to comment.