fix: Provide file paths instead of "title"s

Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>
This commit is contained in:
gavin 2020-09-24 13:38:10 +05:30 committed by GitHub
parent 04e0af578b
commit 0ee7d890bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,7 +229,7 @@ def get_site_config(sites_path=None, site_path=None):
try:
config.update(get_file_json(common_site_config))
except Exception as error:
click.secho("Common Site Config may be corrupted", fg="red")
click.secho("common_site_config.json is invalid", fg="red")
print(error)
if site_path:
@ -238,7 +238,7 @@ def get_site_config(sites_path=None, site_path=None):
try:
config.update(get_file_json(site_config))
except Exception as error:
click.secho("Site Config for {0} may be corrupted".format(local.site), fg="red")
click.secho("{0}/site_config.json is invalid".format(local.site), fg="red")
print(error)
elif local.site and not local.flags.new_site:
raise IncorrectSitePath("{0} does not exist".format(local.site))