Skip to content

Commit

Permalink
Fix config file missing error
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnavarro committed Oct 21, 2022
1 parent 27cd181 commit 2310beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/router_cider.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ def __init__(self):
with open(self.config_file, 'r') as file:
conf=file.read()
except IOError as e:
eprint('Error "{}" reading config={}'.format(e, config_path))
eprint('Error "{}" reading config={}'.format(e, self.config_file))
sys.exit(1)
try:
self.config = json.loads(conf)
except ValueError as e:
eprint('Error "{}" parsing config={}'.format(e, config_path))
eprint('Error "{}" parsing config={}'.format(e, self.config_file))
sys.exit(1)

if self.config.get('PID_FILE'):
Expand Down

0 comments on commit 2310beb

Please sign in to comment.