From 0ee7d890bcaf0e0ec2496e8d95ed6a98ca695d1f Mon Sep 17 00:00:00 2001 From: gavin Date: Thu, 24 Sep 2020 13:38:10 +0530 Subject: [PATCH] fix: Provide file paths instead of "title"s Co-authored-by: Faris Ansari --- frappe/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/__init__.py b/frappe/__init__.py index 3091c06dcd..554f1f9747 100644 --- a/frappe/__init__.py +++ b/frappe/__init__.py @@ -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))