From 035d372899e91a901f751e7fe212833333707d1f Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Fri, 28 Apr 2017 12:42:08 -0700 Subject: [PATCH] improve error message when config_files.xml is not found --- scripts/lib/CIME/XML/files.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/lib/CIME/XML/files.py b/scripts/lib/CIME/XML/files.py index 61b2894b579..a66721c6dfd 100644 --- a/scripts/lib/CIME/XML/files.py +++ b/scripts/lib/CIME/XML/files.py @@ -20,6 +20,7 @@ def __init__(self): """ cimeroot = get_cime_root() infile = os.path.join(cimeroot, "config", get_model(), "config_files.xml") + expect(os.path.isfile(infile), "Could not find or open file %s"%infile) schema = os.path.join(cimeroot, "config", "xml_schemas", "entry_id.xsd") EntryID.__init__(self, infile, schema=schema)