Skip to content

Commit

Permalink
not crashing the program, but showing error
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmudhera committed Feb 6, 2024
1 parent 345aeb1 commit bbbc68a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yacht/run_YACHT.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ def main(args):

# Make sure the output can be written to
if not os.access(outdir, os.W_OK):
raise FileNotFoundError(f"Cannot write to the location: {outdir}.")
# give error message, and exit with error status
print(f"Cannot write to the location: {outdir}.\n")
print("Please check if this location exists, and that you have the permission to write to this location. Exiting..\n")
sys.exit(1)

Check warning on line 71 in yacht/run_YACHT.py

View check run for this annotation

Codecov / codecov/patch

yacht/run_YACHT.py#L69-L71

Added lines #L69 - L71 were not covered by tests

# check if min_coverage is between 0 and 1
for x in min_coverage_list:
Expand Down

0 comments on commit bbbc68a

Please sign in to comment.