Skip to content

Commit

Permalink
Added error logging for env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellAV committed Aug 13, 2024
1 parent 24196ac commit 36c6284
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions workers/src/pvinsight-validation-runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,12 +499,14 @@ def run( # noqa: C901
volume_host_results_dir = os.environ.get("DOCKER_HOST_VOLUME_RESULTS_DIR")

if volume_host_data_dir is None:
logger.error("volume_host_data_dir not found")
# TODO: add error code
raise RunnerException(
*get_error_by_code(500, runner_error_codes, logger)
)

if volume_host_results_dir is None:
logger.error("volume_host_results_dir not found")
# TODO: add error code
raise RunnerException(
*get_error_by_code(500, runner_error_codes, logger)
Expand Down

0 comments on commit 36c6284

Please sign in to comment.