Skip to content

Commit

Permalink
Small changes in config display
Browse files Browse the repository at this point in the history
  • Loading branch information
edyan committed Jul 15, 2019
1 parent c12d52e commit 1f46d08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/pages/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ To develop stakkr, you have to create a virtual environment :
$ git clone git@github.com:stakkr-org/stakkr.git stakkr
$ cd stakkr
$ python3 -m venv venv
$ source venv/bin/activate
# For Windows use "venv\Scripts\activate"
$ python3 -m venv venv_stakkr
$ source venv_stakkr/bin/activate
# For Windows use "venv_stakkr\Scripts\activate"
Then install stakkr and its dependencies :
Expand Down
1 change: 1 addition & 0 deletions stakkr/configreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def display_errors(self):
msg = 'Failed validating config ('
msg += ', '.join(self.config_files)
msg += '):\n - {}\n'.format(self.error)
msg += '\nMake sure you have the right services.\n'
stderr.write(style(msg, fg='red'))

def read(self):
Expand Down
2 changes: 1 addition & 1 deletion stakkr/stakkr_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _get_config(config_file: str):
config = config_reader.read()

if config is False:
config.display_errors()
config_reader.display_errors()
sys.exit(1)

return config, config_reader.config_file
Expand Down

0 comments on commit 1f46d08

Please sign in to comment.