Skip to content

Commit

Permalink
fix: warn on bridgeData not found
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Oct 4, 2023
1 parent 19225d3 commit a8336d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions run_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def main(ctx: BaseContext) -> None:
except Exception as e:
logger.debug(e)

if "No such file or directory" in str(e):
logger.error(f"Could not find {BRIDGE_CONFIG_FILENAME}. Please create it and try again.")

if isinstance(e, ValidationError):
# Print a list of fields that failed validation
logger.error(f"The following fields in {BRIDGE_CONFIG_FILENAME} failed validation:")
Expand Down

0 comments on commit a8336d7

Please sign in to comment.